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

:root {
    --primary-green: #7CB342;
    --dark-green: #558b2f;
    --light-green: #C5E1A5;
    --secondary-brown: #8D6E63;
    --dark-brown: #5D4037;
    --accent-blue: #4FC3F7;
    --cream: #FAFAFA;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #757575;
    --gray-light: #E0E0E0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navegación Sticky con cambio de color */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    will-change: background-color, padding;
    transform: translateZ(0);
}

.navbar.scrolled {
    background: rgba(124, 179, 66, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--white);
}

.navbar.scrolled .nav-link:hover {
    color: var(--cream);
}

.navbar.scrolled .menu-toggle span {
    background: var(--white);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    height: 60px;
    transition: height 0.3s ease;
    background: transparent;
    display: flex;
    align-items: center;
}

.navbar.scrolled .logo-container {
    height: 50px;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 50%;
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-green);
}

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

.navbar.scrolled .nav-link::after {
    background: var(--white);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1.05);
    filter: brightness(0.65) blur(3px);
}

.hero-image img.loaded {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 179, 66, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-green);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    margin: 0 auto;
}

/* Secciones */
.about-section,
.services-section,
.products-section,
.partners-section,
.gallery-section,
.contact-section {
    padding: 5rem 0;
}

.about-section {
    background: var(--white);
}

.services-section {
    background: var(--cream);
}

.products-section {
    background: var(--white);
}

.partners-section {
    background: var(--cream);
}

.gallery-section {
    background: var(--white);
}

.contact-section {
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--secondary-brown);
    margin-bottom: 1rem;
}

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

/* About Section - Misión y Visión */
.mission-vision-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

.mission-card,
.vision-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-green);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.mission-card {
    background-image: url('imagenes_reducidas/doctora con perro abrazado (1).webp');
}

.vision-card {
    background-image: url('imagenes_reducidas/Golden sentado.webp');
}

.mission-card > *,
.vision-card > * {
    position: relative;
    z-index: 2;
}



.mv-image {
    display: none;
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.75rem;
    color: var(--secondary-brown);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.mission-card p,
.vision-card p {
    color: var(--text-dark);
    line-height: 1.8;
    text-align: justify;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* Team Section */
.team-section {
    margin-top: 3rem;
}

.team-header {
    text-align: center;
    margin-bottom: 3rem;
}

.team-title {
    font-size: 2rem;
    color: var(--secondary-brown);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Fundadores */
.founders-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid var(--light-green);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-member.founder {
    position: relative;
    background: linear-gradient(135deg, var(--light-green), var(--white));
    border: 2px solid var(--primary-green);
}

.founder-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-green);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* Especialistas en Carrusel */
.specialists-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--light-green);
}

.specialists-scroll::-webkit-scrollbar {
    height: 8px;
}

.specialists-scroll::-webkit-scrollbar-track {
    background: var(--light-green);
    border-radius: 10px;
}

.specialists-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.specialist-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

/* Especialistas */
.specialists-section {
    margin-top: 3rem;
}

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

.specialty-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-green);
}

.specialty-title {
    font-size: 1.5rem;
    color: var(--secondary-brown);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 0.75rem;
}

.rotating-doctors {
    position: relative;
    min-height: 280px;
}

.rotating-doctors .team-member {
    display: none;
    animation: fadeIn 0.5s ease;
}

.rotating-doctors .team-member.active {
    display: block;
}

/* Controles de rotación */
.rotation-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-green);
}

.rotation-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.3);
}

.rotation-btn:hover {
    background: var(--dark-green);
    transform: scale(1.1);
}

.rotation-btn:active {
    transform: scale(0.95);
}

.rotation-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--dark-green);
}

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

.team-member {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.team-member:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.2);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.member-name {
    font-size: 1.125rem;
    color: var(--secondary-brown);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.member-specialty {
    color: var(--primary-green);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Modal CV */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    color: var(--text-dark);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 1rem 1.5rem;
    background: var(--white);
    z-index: 10;
}

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

.modal-header {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-radius: 12px 12px 0 0;
}

.modal-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.modal-photo .photo-placeholder {
    font-size: 3rem;
}

.modal-title-section h2 {
    color: var(--secondary-brown);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.modal-title-section p {
    color: var(--dark-green);
    font-weight: 600;
    font-size: 1.125rem;
}

.modal-body {
    padding: 2rem;
}

.cv-section {
    margin-bottom: 2rem;
}

.cv-section h3 {
    color: var(--secondary-brown);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 0.5rem;
}

.cv-section ul {
    list-style: none;
    padding-left: 0;
}

.cv-section ul li {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.cv-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.cv-section p {
    color: var(--text-dark);
    line-height: 1.8;
}

.cv-section.personal-note {
    background: var(--light-green);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.cv-section.personal-note p {
    font-style: italic;
    color: var(--text-dark);
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--light-green);
    color: var(--dark-green);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: var(--light-green);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.service-category {
    display: none;
}

.service-category.active {
    display: block;
}

/* Scroll Container */
.scroll-container {
    position: relative;
    padding: 0 3rem;
}

.services-scroll,
.products-scroll,
.partners-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--light-green);
}

.services-scroll::-webkit-scrollbar,
.products-scroll::-webkit-scrollbar,
.partners-scroll::-webkit-scrollbar {
    height: 8px;
}

.services-scroll::-webkit-scrollbar-track,
.products-scroll::-webkit-scrollbar-track,
.partners-scroll::-webkit-scrollbar-track {
    background: var(--light-green);
    border-radius: 10px;
}

.services-scroll::-webkit-scrollbar-thumb,
.products-scroll::-webkit-scrollbar-thumb,
.partners-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.services-scroll .service-card,
.products-scroll .product-card,
.partners-scroll .partner-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-green);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: var(--dark-green);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.product-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.25);
}

.product-image {
    position: relative;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    padding: 3rem 2rem;
    text-align: center;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--dark-green);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}



.product-image-real {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.product-img-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-real {
    transform: scale(1.05);
}

.product-category {
    display: none;
}

.product-category.active {
    display: block;
}

.product-card > .product-title,
.product-card > .product-description,
.product-card > .product-link {
    padding: 0 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    color: var(--secondary-brown);
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.product-description {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.product-link {
    display: inline-block;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: var(--dark-green);
    transform: translateX(5px);
}

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

.service-category[data-category="especialidades"] .scroll-container,
.service-category[data-category="cirugias"] .scroll-container,
.service-category[data-category="diagnostico"] .scroll-container,
.service-category[data-category="laboratorio"] .scroll-container {
    background: linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.52)), url('imagenes_reducidas/Sección Servicios/imagen de fondo sección.PNG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 12px;
    padding: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.service-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.2);
}



.service-image-header {
    width: calc(100% + 4rem);
    height: 220px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

.service-title {
    font-size: 1.25rem;
    color: var(--secondary-brown);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-description {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.partner-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.2);
}

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



.partner-header h3 {
    font-size: 1.25rem;
    color: var(--secondary-brown);
    font-weight: 600;
}

.partner-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.partner-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.benefit-tag {
    background: var(--light-green);
    color: var(--dark-green);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.partner-contact {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gallery-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 10px 30px rgba(124, 179, 66, 0.25);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image.clickable-gallery {
    cursor: pointer;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-image img.loaded {
    opacity: 1;
}

.gallery-click-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(124, 179, 66, 0.9);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-weight: 600;
}

.gallery-image.clickable-gallery:hover .gallery-click-hint {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-tag {
    display: inline-block;
    background: var(--light-green);
    color: var(--dark-green);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.gallery-description {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: var(--light-green);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}



.info-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-brown);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-card p {
    color: var(--text-dark);
    line-height: 1.8;
}

.contact-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--secondary-brown);
    color: var(--cream);
    padding: 3rem 0 1.5rem;
}

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

.footer-logo {
    height: 200px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-weight: 600;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

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

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

.footer-section a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--primary-green);
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Ipsumatio link in footer */
.footer-credits a {
    color: var(--primary-green);
    font-weight: bold;
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 200px;
    height: auto;
    animation: bounce-loading 1.5s ease-in-out infinite;
}

.loading-text {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    color: var(--primary-green);
    font-weight: 600;
}

@keyframes bounce-loading {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Lazy loading placeholder */
.lazy-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Easter egg message styles */
#easter-egg-message {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, rgba(124, 179, 66, 0.95), rgba(85, 139, 47, 0.95));
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    text-align: left;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-width: 280px;
    pointer-events: none;
    transform: translateY(10px);
    line-height: 1.5;
    border-left: 4px solid var(--white);
}

#easter-egg-message.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #easter-egg-message {
        bottom: 90px;
        right: 15px;
        left: 15px;
        max-width: calc(100% - 30px);
        font-size: 0.85rem;
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    #easter-egg-message {
        bottom: 80px;
        font-size: 0.8rem;
        padding: 0.65rem 1rem;
    }
}

/* Responsive - Móvil First */
@media (max-width: 768px) {
    /* Navegación móvil */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        padding: 2rem;
        transition: right 0.3s ease;
        gap: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

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

    .navbar.scrolled .nav-menu {
        background: rgba(124, 179, 66, 0.98);
    }

    /* Hero responsive */
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    /* Secciones generales */
    .about-section,
    .services-section,
    .products-section,
    .partners-section,
    .gallery-section,
    .contact-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

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

    /* Misión y Visión */
    .mission-vision-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .mission-card,
    .vision-card {
        padding: 1.5rem;
    }

    .mv-image {
        height: 180px;
    }

    /* Equipo */
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .member-name {
        font-size: 1rem;
    }

    .member-specialty {
        font-size: 0.875rem;
    }

    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .modal-photo {
        width: 80px;
        height: 80px;
    }

    .modal-title-section h2 {
        font-size: 1.5rem;
    }

    .modal-title-section p {
        font-size: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .cv-section h3 {
        font-size: 1.125rem;
    }

    /* Filtros de categorías */
    .category-filters {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Scroll containers */
    .scroll-container {
        padding: 0 2rem;
    }

    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }

    .services-scroll .service-card,
    .products-scroll .product-card,
    .partners-scroll .partner-card {
        flex: 0 0 260px;
    }

    /* Servicios */
    .service-card {
        padding: 1.5rem;
    }

    .service-image-header {
        width: calc(100% + 3rem);
        height: 180px;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        overflow: hidden;
    }

    .service-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-width: 100%;
    }

    .service-title {
        font-size: 1.125rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    /* Productos */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        margin: 0 1rem;
    }

    .product-image-real {
        height: 180px;
    }

    .product-title {
        font-size: 1.125rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    /* Partners/Responsabilidad Social */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .partner-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .partner-header h3 {
        font-size: 1.125rem;
    }

    /* Galería */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-card {
        margin: 0 1rem;
    }

    .gallery-image {
        height: 220px;
    }

    .gallery-overlay h4 {
        font-size: 1.125rem;
    }

    .gallery-overlay p {
        font-size: 0.85rem;
    }

    .gallery-click-hint {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    /* CTA */
    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }

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

    /* Contacto */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .info-card h3 {
        font-size: 1.125rem;
    }

    .contact-map {
        height: 300px;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-section h4 {
        font-size: 1.125rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
        display: block;
        height: 60px;
    }

    /* Botones flotantes */
    .whatsapp-float,
    .instagram-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .instagram-float {
        bottom: 80px;
        right: 20px;
    }

    .whatsapp-float svg,
    .instagram-float svg {
        width: 28px;
        height: 28px;
    }

    /* Rotación controls */
    .rotation-controls {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .rotation-btn {
        width: 30px;
        height: 30px;
        font-size: 1.25rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .services-scroll .service-card,
    .products-scroll .product-card,
    .partners-scroll .partner-card {
        flex: 0 0 240px;
    }

    .scroll-container {
        padding: 0 1.5rem;
    }

    .service-image-header {
        width: calc(100% + 3rem);
        height: 160px;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
    }

    .category-filters {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .category-filters::-webkit-scrollbar {
        height: 4px;
    }
}

/* Landscape mode en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 5rem 0 3rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Botones flotantes de redes sociales */
.whatsapp-float,
.instagram-float {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float {
    bottom: 30px;
    right: 30px;
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: pulse-whatsapp 2s infinite;
}

.instagram-float {
    bottom: 100px;
    right: 30px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 20px rgba(188, 24, 136, 0.4);
    animation: pulse-instagram 2s infinite;
}

.whatsapp-float:hover,
.instagram-float:hover {
    transform: scale(1.1);
}

.whatsapp-float:hover {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.instagram-float:hover {
    box-shadow: 0 6px 30px rgba(188, 24, 136, 0.6);
}

.whatsapp-float svg,
.instagram-float svg {
    width: 35px;
    height: 35px;
    color: var(--white);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

@keyframes pulse-instagram {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(188, 24, 136, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(188, 24, 136, 0.7);
    }
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}