/* Main styles for touchedisindo - Exported from Stitch */
:root {
    --primary-color: #ef4e48;
    --primary-hover: #d43f3a;
    --text-color: #333;
    --bg-color: #fff;
    --section-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    padding: 8px 0;
    /* Reduced from 20px */
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 54px;
    /* Increased from 40px */
    max-height: 100%;
    width: auto;
    max-width: 250px;
    /* Increased from 220px */
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Hero Section */
.hero {
    padding: 150px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../imagenes/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: #eee;
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Features/How it works */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--section-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Reduced from 300px to avoid mobile overflow */
    gap: 40px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    /* Using flex for robust centering */
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 10;
    /* Matches the 2560x1600 source ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f4f4f4;
}

.card i,
.card .fas,
.card .fa-solid {
    font-size: 3rem;
    /* Slightly larger for better visibility */
    color: var(--primary-color) !important;
    /* Force color in case of override */
    margin-bottom: 20px;
    display: inline-block;
}

/* Footer */
footer {
    padding: 60px 0;
    background: #111;
    color: #fff;
    text-align: center;
}

.footer-content .logo {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .logo {
        justify-content: center;
    }

    footer .logo {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: center;
    }

    .footer-content {
        text-align: center;
    }
}

/* Pricing Section */
.pricing-section {
    background: #fdfdfd;
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-subtitle {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid #ef4e48;
    position: relative;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.featured::after {
    content: 'Recomendado';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4e48;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ef4e48;
    margin-bottom: 1.5rem;
}

.pricing-body {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-body p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.features-list li i {
    color: #ef4e48;
    margin-right: 12px;
}

.pricing-footer .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.pricing-footer .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}