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

:root {
    --primary-color: #2d8659;
    --secondary-color: #1e5d3f;
    --primary-light: #34ce57;
    --primary-dark: #155724;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #666;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Superior */
.header-top {
    background-color: #1a4d2e;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-box label {
    font-size: 14px;
    color: var(--white);
}

.search-box input {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.phone-link,
.contact-link,
.whatsapp-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.phone-link:hover,
.contact-link:hover,
.whatsapp-link:hover {
    color: var(--primary-light);
}

/* Header Principal */
.main-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    width: 100%;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-part1 {
    color: var(--primary-light);
}

/* Logo Institutional - Icon + Text (Profesional) */
.logo {
    display: flex;
    align-items: center;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    border: none !important;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    /* Eliminamos subrayado */
    gap: 15px;
    color: inherit !important;
    /* Heredamos el color para evitar azul de link */
}

.logo-icon {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block !important;
    mix-blend-mode: multiply;
    /* Truco para eliminar fondo gris/blanco sobre fondo blanco */
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark) !important;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
}

.brand-accent {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.brand-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    /* Más grueso para visibilidad */
    color: var(--primary-color);
    /* Cambiamos a verde para más coherencia */
    letter-spacing: 2.5px;
    margin-top: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 20px;
    }

    .brand-tagline {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .logo-icon {
        height: 45px;
    }

    .logo-link {
        gap: 10px;
    }
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu.oxy-mega-dropdown_container {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    padding: 15px 20px;
    display: inline-block;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
}

.nav-item .oxy-mega-dropdown_container {
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.nav-item:hover .oxy-mega-dropdown_container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    list-style: none;
    min-width: 250px;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-dark));
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.hero-prev,
.hero-next {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--white);
}

/* Secciones */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 40px;
    font-size: 18px;
}

/* Novedades */
.novedades-section {
    padding: 60px 0;
    background: var(--white);
}

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

.novedad-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.novedad-image {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    overflow: hidden;
}

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

.novedad-content {
    padding: 20px;
}

.novedad-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.novedad-content p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* Sedes */
.sedes-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.sedes-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.sede-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.sede-card:hover {
    transform: translateY(-3px);
}

.sede-type {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.sede-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.sede-card p {
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.btn-map {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.btn-map:hover {
    color: var(--primary-dark);
}

/* Testimonial */
.testimonial-section {
    padding: 60px 0;
    background: var(--white);
    text-align: center;
}

.testimonial-content blockquote {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content p {
    font-size: 24px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
}

.testimonial-content cite {
    font-size: 16px;
    color: var(--dark-gray);
    font-style: normal;
}

/* Área Médicos */
.medicos-section {
    padding: 60px 0;
    background: var(--light-gray);
    text-align: center;
}

.medicos-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.medicos-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.medico-link {
    padding: 12px 25px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.medico-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-dark);
}

.planta-procesamiento {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
}

.planta-procesamiento h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.planta-procesamiento p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

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

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.social-links-footer a:hover {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Circular Services Menu */
.circular-services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.circular-menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.circular-menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-wrapper {
    width: 280px;
    height: 280px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.circle-wrapper:hover {
    transform: scale(1.08) translateY(-10px);
}

.circle-content {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--item-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.circle-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.circle-wrapper:hover .circle-content::before {
    opacity: 1;
}

.circle-wrapper:hover .circle-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.circle-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.circle-wrapper:hover .circle-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.circle-icon i {
    font-size: 36px;
    color: white;
}

.circle-content h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
    text-transform: capitalize;
}

.circle-btn {
    background: white;
    color: var(--item-color);
    padding: 10px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.circle-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s;
        z-index: 1001;
    }

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

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        margin-top: 10px;
    }

    .dropdown-menu a {
        color: var(--white);
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-light);
    }

    .header-top-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .medicos-links {
        flex-direction: column;
        align-items: center;
    }

    /* Circular Menu Responsive */
    .circular-menu-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 10px;
    }

    .circle-wrapper {
        width: 240px;
        height: 240px;
    }

    .circle-content h3 {
        font-size: 16px;
    }

    .circle-icon {
        width: 70px;
        height: 70px;
    }

    .circle-icon i {
        font-size: 30px;
    }
}

/* Custom Scrollbar for Dropdowns */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--white);
}