/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #172A28;    /* Verde muy oscuro */
    --primary-light: #A5CD88;   /* Verde claro */
    --primary-cream: #EAE8D6;   /* Beige/crema */
    --primary-medium: #4C6548;  /* Verde medio */
    --white: #ffffff;           /* Blanco para lectura */
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #f5f4ea 0%, rgba(245, 244, 234, 0.95) 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Más padding lateral */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px; /* Barra más alta */
}

.logo {
    display: flex;
    align-items: center;
    padding: 5px 0 5px 10px;
    justify-content: center;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: none; /* Colores originales del logo */
    margin: 0 auto; /* Centrado horizontal */
}

.logo h2 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 3px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
    transform-origin: left;
}

.nav-link:hover {
    color: var(--primary-medium);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(165, 205, 136, 0.2);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger:hover .bar {
    background-color: var(--primary-medium);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-cream) 0%, var(--white) 100%);
    padding: 140px 20px 80px; /* Aumentamos el padding superior para compensar la nueva altura del header */
    display: flex;
    align-items: center;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-medium);
    color: var(--white);
    border-color: var(--primary-medium);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-medium);
    border-color: var(--primary-medium);
}

.btn-outline:hover {
    background-color: var(--primary-medium);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    background-color: var(--primary-light);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: var(--white);
    opacity: 0.8;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--primary-cream);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--primary-cream);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    color: var(--primary-medium);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
}

.about-placeholder {
    background-color: var(--primary-light);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    color: var(--white);
    opacity: 0.8;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 250px;
    background-color: var(--primary-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: var(--primary-medium);
    opacity: 0.7;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-info p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--primary-dark);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    color: var(--primary-light);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-light);
    font-size: 1.2rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    background-color: var(--primary-light);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-medium);
    transform: translateY(-2px);
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--primary-cream);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--primary-medium);
    padding-top: 1rem;
    text-align: center;
    color: var(--primary-cream);
}

/* Estilos mejorados para la página de proyectos */
.projects.page-section {
    background: radial-gradient(circle at top right, rgba(76, 101, 72, 0.95) 0%, var(--primary-dark) 25%, var(--primary-dark) 75%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 140px 0 80px;
}

.projects.page-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(165, 205, 136, 0.08) 0%, rgba(165, 205, 136, 0) 60%);
    border-radius: 50%;
    z-index: 1;
    animation: floating 20s infinite ease-in-out;
}

.projects.page-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(234, 232, 214, 0.05) 0%, rgba(234, 232, 214, 0) 60%);
    border-radius: 50%;
    z-index: 1;
    animation: floating 25s infinite ease-in-out reverse;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-30px) rotate(2deg); }
}

.projects .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.projects .section-header h2 {
    color: var(--primary-light);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    animation: headerFadeIn 1s ease 0.3s forwards;
}

.projects .section-header p {
    color: var(--primary-cream);
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(-15px);
    animation: headerFadeIn 1s ease 0.5s forwards;
}

@keyframes headerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.project-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(165, 205, 136, 0.3);
}

.project-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}



.project-info {
    padding: 2rem;
    position: relative;
    z-index: 3;
}

.project-info h3 {
    color: var(--primary-light);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-info p {
    color: var(--primary-cream);
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-info p {
    opacity: 1;
    color: var(--white);
}

/* Botón Ver más en cards de proyecto */
.btn-project {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    color: var(--primary-dark);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(165, 205, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(165, 205, 136, 0.4);
    background: linear-gradient(135deg, #b8d19c, var(--primary-light));
    color: var(--primary-dark);
}

/* Badge de proyecto */
.project-card::before {
    content: attr(data-category);
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 4;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones de entrada escalonadas */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    animation: projectCardFadeIn 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes projectCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para páginas de detalle de proyectos */
.project-detail {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2f2d 50%, var(--primary-dark) 100%);
    color: var(--white);
    min-height: 100vh;
    padding: 140px 0 80px;
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb i {
    margin-right: 0.5rem;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.project-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-header h1 {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--primary-cream);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.project-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-cream);
}

.meta-item i {
    color: var(--primary-light);
    width: 20px;
}

.project-description {
    margin-bottom: 4rem;
}

.project-description h2 {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-description p {
    color: var(--primary-cream);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.project-highlights {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.project-highlights h3 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-highlights ul {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--primary-cream);
}

.project-highlights li i {
    color: var(--primary-light);
    margin-right: 0.8rem;
    width: 16px;
}

/* Galería de imágenes */
.project-gallery {
    margin-bottom: 4rem;
}

.project-gallery h2 {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 42, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--primary-light);
    font-size: 2rem;
}

/* Modal para galería */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-light);
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* CTA Section */
.project-cta {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
}

.project-cta h2 {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-cta p {
    color: var(--primary-cream);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.project-cta .btn {
    margin: 0 0.5rem;
    display: inline-block;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    color: var(--primary-dark);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(165, 205, 136, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px; /* Actualizado para coincidir con la nueva altura de la barra */
        flex-direction: column;
        background: linear-gradient(135deg, #f5f4ea 0%, rgba(245, 244, 234, 0.97) 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .logo-img {
        height: 45px;
    }

    .logo h2 {
        font-size: 1.5rem;
    }

    .projects .section-header h2 {
        font-size: 2.5rem;
    }

    .projects .section-header p {
        font-size: 1.1rem;
    }

    .project-image {
        height: 250px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .hero-placeholder,
    .about-placeholder {
        padding: 40px;
    }

    .hero-placeholder i,
    .about-placeholder i {
        font-size: 4rem !important;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .projects .section-header {
        margin-bottom: 2.5rem;
    }

    .projects .section-header h2 {
        font-size: 2rem;
    }

    .projects .section-header p {
        font-size: 1rem;
    }

    .project-card {
        border-radius: 15px;
    }

    .project-image {
        height: 220px;
    }

    .project-info {
        padding: 1.2rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .project-card::before {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
        top: 0.8rem;
        right: 0.8rem;
    }

    /* Responsive para páginas de detalle de proyectos */
    .project-header h1 {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item img {
        height: 250px;
    }

    .project-cta {
        padding: 2rem 1rem;
    }

    .project-cta .btn {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }

    .modal-content {
        max-width: 95%;
        max-height: 70%;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.project-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Estilos para imágenes reales */
.hero-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-main-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Responsive para imágenes */
@media (max-width: 768px) {
    .hero-main-img {
        height: 250px;
    }
    
    .about-main-img {
        height: 200px;
    }
}

/* Estilos para páginas individuales */
.page-section {
    padding-top: 140px; /* Aumentado para compensar la barra más alta */
    min-height: calc(100vh - 300px); /* Altura mínima para que el contenido ocupe la pantalla */
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Offset para anclas considerando header fijo */
h3[id] {
    scroll-margin-top: 150px !important; /* Offset para centrar mejor el contenido */
}

/* Main Services Section */
.main-services {
    padding: 140px 0 80px;
    background: radial-gradient(circle at top left, rgba(76, 101, 72, 0.9) 0%, var(--primary-dark) 30%, var(--primary-dark) 60%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.main-services::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 50%);
    border-radius: 50%;
    z-index: 1;
    animation: glow 15s infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }
    100% {
        opacity: 0.2;
        transform: scale(1.02);
    }
}

.main-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.main-header h1 {
    color: var(--primary-light);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease forwards;
}

.main-header p {
    color: var(--white);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.6s 0.2s ease forwards;
    opacity: 0;
}

.header-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin: 3rem auto 2rem auto;
    border-radius: 1px;
    animation: fadeInUp 0.6s 0.3s ease forwards;
    opacity: 0;
}

.service-card.dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card.dark:nth-child(1) {
    animation-delay: 0.2s;
}

.service-card.dark:nth-child(2) {
    animation-delay: 0.4s;
}

.service-card.dark:nth-child(3) {
    animation-delay: 0.6s;
}

.service-card.dark:nth-child(4) {
    animation-delay: 0.8s;
}

.service-card.dark:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card.dark:hover .service-image img {
    transform: scale(1.1);
}

.service-card.dark .service-icon {
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-card.dark:hover .service-icon {
    transform: translateX(-50%) scale(1.1);
}

.service-card.dark h3 {
    color: var(--primary-light);
    margin: 45px 0 15px;
    font-size: 1.3rem;
    text-align: center;
    padding: 0 20px;
}

.service-card.dark p {
    color: var(--primary-cream);
    line-height: 1.6;
    font-size: 0.95rem;
    padding: 0 20px;
    margin-bottom: 25px;
    text-align: center;
}

.service-link {
    display: block;
    text-align: center;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover {
    background-color: rgba(165, 205, 136, 0.1);
    color: var(--white);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Media queries para la sección de servicios */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .service-card.dark h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .section-header.dark h2 {
        font-size: 2rem;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-card.dark .service-icon {
        top: 150px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Títulos de sección de servicios */
.services-section-title {
    grid-column: 1 / -1;
    text-align: center;
    margin: 3rem 0 2rem 0;
    position: relative;
    z-index: 2;
}

.services-section-title h2 {
    color: var(--primary-light);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease forwards;
}

.services-section-title p {
    color: var(--white);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
    animation: fadeInUp 0.6s 0.2s ease forwards;
}

@media (max-width: 768px) {
    .services-section-title {
        margin: 2rem 0 1.5rem 0;
    }
    
    .services-section-title h2 {
        font-size: 2rem;
    }
    
    .services-section-title p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-section-title {
        margin: 1.5rem 0 1rem 0;
    }
    
    .services-section-title h2 {
        font-size: 1.5rem;
    }
    
    .services-section-title p {
        font-size: 0.9rem;
    }
}

.view-all-services {
    text-align: center;
    margin-top: 3rem;
    animation: fadeInUp 0.6s 1s ease forwards;
    opacity: 0;
}

.main-services .btn-outline {
    background-color: transparent;
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.main-services .btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2.5rem;
    }
    
    .main-header p {
        font-size: 1.1rem;
    }
    
    .header-divider {
        width: 60px;
        margin: 2.5rem auto 1.5rem auto;
    }
    
    .main-services {
        padding: 120px 0 60px;
    }
    
    /* Ajuste de offset para móviles */
    h3[id] {
        scroll-margin-top: 140px !important;
    }
    
    .service-header {
        padding-top: 50px !important;
        margin-top: -50px !important;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .main-header p {
        font-size: 1rem;
    }
    
    .header-divider {
        width: 50px;
        margin: 2rem auto 1rem auto;
    }
    
    /* Ajuste de offset para móviles pequeños */
    h3[id] {
        scroll-margin-top: 130px !important;
    }
    
    .service-header {
        padding-top: 40px !important;
        margin-top: -40px !important;
    }
}

/* Servicios Page */
.services-page {
    padding: 140px 0 80px;
    background: radial-gradient(circle at top left, rgba(76, 101, 72, 0.9) 0%, var(--primary-dark) 30%, var(--primary-dark) 60%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.services-page::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 50%);
    border-radius: 50%;
    z-index: 1;
    animation: glow 15s infinite alternate;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Horizontal Service Cards */
.service-card-horizontal {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
    opacity: 1;
    height: auto;
    margin-bottom: 1.5rem;
    position: static;
}

.service-card-horizontal:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.service-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.service-image-horizontal {
    width: 40%;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

/* Fix específico para la segunda tarjeta (multifamiliar) */
.service-card-horizontal:nth-child(2) .service-image-horizontal {
    width: 40%;
    position: relative;
    overflow: visible !important;
    min-height: 300px;
}

.service-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Fix específico para imágenes de la segunda tarjeta (multifamiliar) */
.service-card-horizontal:nth-child(2) .service-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

.service-icon-horizontal {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    margin-bottom: 0;
}

.service-card-horizontal h3 {
    color: var(--primary-light);
    font-size: 1.5rem;
    margin: 0;
}

.service-card-horizontal p {
    color: var(--primary-cream);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin: 0.3rem 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    color: var(--white);
    line-height: 1.4;
}

.service-features li i {
    color: var(--primary-light);
    margin-right: 0.8rem;
    font-size: 0.9rem;
    min-width: 12px;
    margin-top: 0.2rem;
}

.btn-service {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    color: var(--primary-dark);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(165, 205, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(165, 205, 136, 0.4);
    background: linear-gradient(135deg, #b8d19c, var(--primary-light));
    color: var(--primary-dark);
}

/* Media queries para las tarjetas horizontales */
@media (max-width: 992px) {
    .service-card-horizontal,
    .service-card-horizontal:first-child {
        flex-direction: column;
    }
    
    .service-image-horizontal,
    .service-card-horizontal:first-child .service-image-horizontal,
    .service-card-horizontal:nth-child(2) .service-image-horizontal {
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        position: relative;
        overflow: visible !important;
    }
    
    .service-image-horizontal img,
    .service-card-horizontal:nth-child(2) .service-image-horizontal img {
        position: relative !important;
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
    
    .service-content,
    .service-card-horizontal:first-child .service-content {
        padding: 2rem;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .services-page {
        padding: 120px 0 60px;
    }
    
    .service-card-horizontal h3 {
        font-size: 1.3rem;
    }
    
    .service-card-horizontal:first-child h3 {
        font-size: 1.5rem;
    }
    
    .service-card-horizontal:first-child .service-content {
        padding: 2rem !important;
        width: 100% !important;
    }
    
    .service-card-horizontal:first-child .service-features {
        margin: 0.8rem 0 1.3rem !important;
    }
    
    .service-card-horizontal:nth-child(2) .service-image-horizontal {
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        overflow: visible !important;
    }
    
    .service-card-horizontal:nth-child(2) .service-image-horizontal img {
        position: relative !important;
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
    
    /* Solución general para todas las imágenes en tablets */
    .service-image-horizontal {
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    .service-image-horizontal img {
        position: static !important;
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        top: unset !important;
        left: unset !important;
        transform: none !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .service-content {
        padding: 1.5rem;
    }
    
    .service-card-horizontal:first-child .service-content {
        padding: 1.5rem !important;
        width: 100% !important;
    }
    
    .service-card-horizontal:first-child .service-features {
        margin: 0.8rem 0 1.5rem !important;
        gap: 0.7rem;
    }
    
    .service-card-horizontal:first-child .service-features li {
        line-height: 1.5;
        font-size: 0.95rem;
    }
    
    .service-card-horizontal:first-child .btn-service {
        margin-top: 1.5rem;
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .service-card-horizontal:first-child h3 {
        font-size: 1.4rem !important;
        margin-bottom: 1rem;
    }
    
    .service-card-horizontal:nth-child(2) .service-image-horizontal {
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        overflow: visible !important;
    }
    
    .service-card-horizontal:nth-child(2) .service-image-horizontal img {
        position: relative !important;
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
    
    .service-icon-horizontal {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .service-card-horizontal:first-child .service-icon-horizontal {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.4rem !important;
    }
    
    /* Solución general para todas las imágenes en móviles */
    .service-image-horizontal {
        width: 100% !important;
        height: 280px !important;
        min-height: 280px !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    .service-image-horizontal img {
        position: static !important;
        object-fit: cover !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        top: unset !important;
        left: unset !important;
        transform: none !important;
        display: block !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }

}

/* Tarjeta destacada para Diseño Arquitectónico y Urbano */
.service-card-horizontal:first-child {
    background: linear-gradient(to right, rgba(76, 101, 72, 0.3), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(165, 205, 136, 0.2);
    height: auto;
}

.service-card-horizontal:first-child .service-image-horizontal {
    width: 40%;
}

.service-card-horizontal:first-child .service-content {
    padding: 2rem;
    width: 60%;
}

.service-card-horizontal:first-child h3 {
    font-size: 1.8rem;
    margin: 0;
}

.service-card-horizontal:first-child .service-icon-horizontal {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
}

.service-card-horizontal:first-child .service-features {
    margin: 0.5rem 0 1.2rem;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    padding-top: 60px; /* Espacio para el scroll centrado */
    margin-top: -60px; /* Compensar el padding */
}

/* Regla específica para mostrar el edificio completo en multifamiliar */
@media (max-width: 992px) {
    .service-card-horizontal:nth-child(2) .service-image-horizontal img {
        object-fit: contain !important;
    }
}

@media (max-width: 768px) {
    .service-card-horizontal:nth-child(2) .service-image-horizontal img {
        object-fit: contain !important;
    }
}

@media (max-width: 480px) {
    .service-card-horizontal:nth-child(2) .service-image-horizontal img {
        object-fit: contain !important;
    }
}

/* Regla específica para mostrar la imagen completa en Instalación de Redes Eléctricas y a Gas */
.service-card-horizontal:nth-child(8) .service-image-horizontal {
    overflow: visible !important;
}

.service-card-horizontal:nth-child(8) .service-image-horizontal img {
    object-fit: contain !important;
    object-position: center;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

@media (max-width: 992px) {
    .service-card-horizontal:nth-child(8) .service-image-horizontal img {
        object-fit: contain !important;
    }
}

@media (max-width: 768px) {
    .service-card-horizontal:nth-child(8) .service-image-horizontal img {
        object-fit: contain !important;
    }
}

@media (max-width: 480px) {
    .service-card-horizontal:nth-child(8) .service-image-horizontal img {
        object-fit: contain !important;
    }
}

/* Regla específica para mostrar la imagen completa en Construcciones en Estructura Metálica Liviana */
.service-card-horizontal:nth-child(9) .service-image-horizontal {
    overflow: visible !important;
}

.service-card-horizontal:nth-child(9) .service-image-horizontal img {
    object-fit: contain !important;
    object-position: center;
    position: relative !important;
    top: auto !important;
    left: auto !important;
}

@media (max-width: 992px) {
    .service-card-horizontal:nth-child(9) .service-image-horizontal img {
        object-fit: contain !important;
    }
}

@media (max-width: 768px) {
    .service-card-horizontal:nth-child(9) .service-image-horizontal img {
        object-fit: contain !important;
    }
}

@media (max-width: 480px) {
    .service-card-horizontal:nth-child(9) .service-image-horizontal img {
        object-fit: contain !important;
    }
}

/* ======================================
   PÁGINA NOSOTROS - NUEVA ESTRUCTURA
   ====================================== */

.about-page {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2f2d 50%, var(--primary-dark) 100%);
    color: var(--white);
    min-height: 100vh;
    padding: 140px 0 80px;
    position: relative;
}

.about-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="%23172A28"/><circle cx="25" cy="25" r="1" fill="%23A5CD88" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23A5CD88" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.about-page .container {
    position: relative;
    z-index: 2;
}

/* 1. Hero Section */
.about-hero {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 2rem;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--primary-cream);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 2. Intro Section */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.about-intro-content h2 {
    color: var(--primary-light);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--primary-cream);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(165, 205, 136, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--primary-cream);
    font-size: 0.9rem;
    font-weight: 500;
}

/* 3. Story Section */
.about-story {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
}

.story-content h2 {
    color: var(--primary-light);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

.story-timeline {
    position: relative;
    padding-left: 2rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary-medium));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.8rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-light);
    border-radius: 50%;
    border: 3px solid var(--primary-dark);
    z-index: 2;
}

.timeline-year {
    position: absolute;
    left: -6rem;
    top: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-light);
    background: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--primary-light);
}

.timeline-content h3 {
    color: var(--primary-light);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--primary-cream);
    line-height: 1.7;
    font-size: 1rem;
}

.story-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. Values Section */
.about-values {
    margin-bottom: 6rem;
    text-align: center;
}

.about-values h2 {
    color: var(--primary-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.values-intro {
    color: var(--primary-cream);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(165, 205, 136, 0.1);
    backdrop-filter: blur(10px);
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(165, 205, 136, 0.2);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(165, 205, 136, 0.4);
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary-dark);
}

.value-card h3 {
    color: var(--primary-light);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: var(--primary-cream);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 5. Team Section */
.about-team {
    margin-bottom: 6rem;
    text-align: center;
}

.about-team h2 {
    color: var(--primary-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-intro {
    color: var(--primary-cream);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(165, 205, 136, 0.1);
    backdrop-filter: blur(10px);
}

.team-member:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-light);
    box-shadow: 0 15px 35px rgba(165, 205, 136, 0.2);
}

.member-photo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.team-member:hover .member-photo {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(165, 205, 136, 0.4);
}

.member-photo i {
    color: var(--primary-dark);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h3 {
    color: var(--primary-light);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-role {
    color: var(--primary-light);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.member-bio {
    color: var(--primary-cream);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* 6. CTA Section */
.about-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: 4rem 3rem;
    border-radius: 25px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(165, 205, 136, 0.2);
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(165, 205, 136, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.about-cta h2 {
    color: var(--primary-light);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.about-cta p {
    color: var(--primary-cream);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-story {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline-year {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        padding-left: 0;
    }
    
    .story-timeline::before {
        display: none;
    }
    
    .timeline-item::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-subtitle {
        font-size: 1.1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-cta {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .about-page {
        padding: 120px 0 60px;
    }
    
    .about-hero {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-intro-content h2,
    .story-content h2,
    .about-values h2,
    .about-team h2 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .value-card,
    .team-member {
        padding: 2rem 1.5rem;
    }
    
    .about-cta {
        padding: 2.5rem 1.5rem;
    }
    
    .about-cta h2 {
        font-size: 1.8rem;
    }
}

/* ======================================
   MEJORAS FORMULARIO DE CONTACTO
   ====================================== */

.contact-form h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

.contact-form h3:first-child {
    margin-top: 0;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-medium);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--primary-dark);
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23172A28"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(165, 205, 136, 0.1);
}

.form-group select:required:invalid {
    color: #999;
}

.form-group select option {
    color: var(--primary-dark);
    background-color: var(--white);
    padding: 10px;
}

.form-group select optgroup {
    font-weight: 600;
    color: var(--primary-medium);
    background-color: #f5f5f5;
}

.form-group select optgroup option {
    font-weight: 400;
    padding-left: 20px;
}

.contact-form .btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 42, 40, 0.3);
}

.contact-form .btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.contact-form .btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design para formulario */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form h3 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .form-group select {
        padding: 10px 12px;
        background-position: right 10px center;
        background-size: 18px;
    }
}

@media (max-width: 480px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}
