/* ===================================================================
   EGOH FORCE - MAIN STYLESHEET
   Organized for optimal performance and maintainability
   =================================================================== */

/* === CSS CUSTOM PROPERTIES (VARIABLES) === */
:root {
    /* Color Palette */
    --bg-dark: #0D1117;
    --bg-medium: #161B22;
    --bg-light: #ffffff;
    --text-primary: #C9D1D9;
    --text-secondary: #8B949E;
    --text-faqs: #545658;
    --accent-primary: #044E51;
    --accent-secondary: #ff7133;
    --border-color: rgba(88, 166, 255, 0.2);
    
    /* Transitions & Effects */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --shadow-light: 0 8px 25px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.1);
    
    /* Spacing & Layout */
    --container-max-width: 1400px;
    --section-padding: 80px 5%;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 15px;
    --border-radius-xl: 50px;
}

/* === RESET & BASE STYLES === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-medium) 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === ACCESSIBILITY & FOCUS STYLES === */
*:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 78, 81, 0.3);
}

/* === BUTTON SYSTEM === */
/* Base button styles - foundation for all buttons */
.btn-base {
    padding: clamp(12px, 3vw, 18px) clamp(24px, 5vw, 36px);
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    min-height: 48px;
    min-width: 120px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Shimmer effect for all buttons */
.btn-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-base:hover::before {
    left: 100%;
}

/* Button interaction states */
.btn-base:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-base:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), var(--shadow-light);
}

.btn-base:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* Neumorphic button variant */
.neumorphic-btn {
    background: var(--accent-secondary);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: medium;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0px 10px 20px rgba(88, 166, 255, 0.2);
}

.neumorphic-btn:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0px 15px 30px rgba(88, 166, 255, 0.3);
}

/* WhatsApp button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: #25d366;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    margin-right: 10px;
    font-size: 20px;
}

/* === HEADER & NAVIGATION === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 5%;
    background: rgba(4, 78, 81, 0.47);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main navigation container */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Logo styles */
.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition-fast);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition-fast);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}

.nav-links a:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links .neumorphic-btn {
    padding: 10px 20px;
    font-weight: 700;
    background: #C9D1D9;
    color: var(--bg-dark);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.nav-links .neumorphic-btn:hover {
    background: #25D366;
    transform: translateY(-2px);
}

/* Navigation controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    list-style: none;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--accent-primary);
    background: rgba(4, 78, 81, 0.1);
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    background: none;
    border: none;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 5% 60px;
    background: url('../src/EF Portada_1.jpg') no-repeat center center/cover;
    overflow: hidden;
}

/* Hero overlay removed - showing original image */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1;
}

/* Hero content container */
.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
    position: relative;
    z-index: 2;
    padding: clamp(60px, 8vh, 100px) 5% clamp(40px, 6vh, 80px);
    min-height: 100vh;
    box-sizing: border-box;
}

/* Hero text section */
.hero-text {
    max-width: 100%;
    order: 1;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.1;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
    text-align: left;
    letter-spacing: -0.02em;
    word-break: break-word;
    hyphens: auto;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 2vw, 1rem);
    margin-top: clamp(0.5rem, 2vw, 1rem);
    flex: 1;
    max-width: 100%;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.8rem, 2vw, 1.2rem);
    padding: 0.5rem 0;
}

.feature-icon {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-top: 0.1rem;
    flex-shrink: 0;
    color: var(--accent-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.feature-title {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 600;
    margin: 0 0 0.3rem 0;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.feature-description {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-callout {
    text-align: left;
    max-width: clamp(280px, 50%, 600px);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vw, 2rem);
    order: 2;
    margin-top: auto;
    margin-bottom: clamp(30px, 5vh, 60px);
    padding: 0;
    width: 100%;
}

.callout-text {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.4;
    order: 1;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    word-break: break-word;
}

/* === HERO BUTTONS === */
/* Base hero button styles */
.hero-btn,
.hero-btn-secondary {
    padding: clamp(12px, 3vw, 18px) clamp(24px, 5vw, 36px);
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    min-height: 48px;
    min-width: 120px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Shimmer effect for hero buttons */
.hero-btn::before,
.hero-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-btn:hover::before,
.hero-btn-secondary:hover::before {
    left: 100%;
}

/* Primary hero button */
.hero-btn {
    background: var(--accent-primary);
    color: var(--bg-light);
    box-shadow: var(--shadow-light);
}

.hero-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--accent-secondary);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), var(--shadow-light);
}

.hero-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* Secondary hero button */
.hero-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), var(--shadow-light);
}

.hero-btn-secondary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}



/* === GENERAL SECTIONS === */
.section {
    padding: var(--section-padding);
    background: #fff;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    font-weight: 700;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--accent-secondary);
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
}

/* === VIDEO SECTION === */
.video-section {
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    position: relative;
}

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

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-description {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    color: var(--bg-dark);
    font-size: 1.2rem;
    line-height: 1.4;
}

.video-description p {
    margin-top: 1rem;
}

.doctor-credentials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
}

.doctor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
}

.credentials-text {
    text-align: left;
}

.credentials-text h3 {
    color: var(--accent-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.credentials-text p {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin: 0.25rem 0;
}

/* === TREATMENTS SECTION === */
#tratamientos {
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    position: relative;
    overflow: hidden;
}

#tratamientos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Treatment cards */
.glass-card {
    background: #fff;
    border: 2px solid var(--accent-primary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

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

.product-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.product-subtitle {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.product-benefits {
    list-style: none;
    margin-bottom: 2rem;
}

.product-benefits li {
    color: #333;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.product-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('../src/bullet.png') no-repeat center center/contain;
}

.product-footer-text {
    color: #666;
    font-style: italic;
    font-size: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: auto;
}

/* === FAQ SECTION === */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.faq-item:hover {
    background: rgba(4, 78, 81, 0.02);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question span {
    color: var(--text-faqs);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    transition: var(--transition-fast);
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: fit-content;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* === FORM SECTION === */
.form-section {
    background-color: #efefef;
    position: relative;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    color: #30363D;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Form inputs */
.neumorphic-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #30363D;
    border-radius: var(--border-radius-md);
    background: #0D1117;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
    box-shadow: inset 3px 3px 6px #0a0d10, inset -3px -3px 6px #10151c;
}

.neumorphic-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: inset 3px 3px 6px #0a0d10, inset -3px -3px 6px #10151c, 0 0 0 2px rgba(88, 166, 255, 0.5);
}

.neumorphic-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* === FOOTER === */
.footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 60px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    gap: 40px;
}

/* Footer logo */
.footer-logo img {
    height: 120px;
    width: auto;
    transition: var(--transition-fast);
}

.footer-logo img:hover {
    transform: scale(1.05);
}

/* Footer description */
.footer-description p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.6;
    color: #ccc;
    margin: 0;
    max-width: 500px;
}

/* Social media links */
.footer-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-socials a {
    color: #fff;
    font-size: 28px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.footer-socials a:hover {
    color: #00ff88;
    background-color: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px) scale(1.1);
}

/* Footer navigation links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: clamp(14px, 3vw, 16px);
    transition: var(--transition-fast);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
}

.footer-links a:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

/* Footer contact section */
.footer-contact h4 {
    margin-bottom: 20px;
    color: #fff;
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
}

/* === UTILITY CLASSES === */
/* Kommo forms integration */
.amoforms_iframe {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}



/* ===================================================================
   RESPONSIVE DESIGN
   Mobile-first approach with progressive enhancement
   =================================================================== */

/* === TABLET LANDSCAPE (992px and below) === */
@media (max-width: 992px) {
    /* Hero section adjustments */
    .hero-content {
        padding: clamp(50px, 7vh, 80px) 5% clamp(35px, 5vh, 60px);
        gap: clamp(1.2rem, 3vw, 2rem);
        min-height: 100vh;
    }
    
    .hero-callout {
        max-width: clamp(320px, 75%, 550px);
        margin-bottom: clamp(30px, 4vh, 45px);
    }
    
    .feature-item {
        padding: 0.4rem 0;
    }
    
    /* Typography adjustments */
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2rem);
    }
    
    /* Button adjustments */
    .hero-btn,
    .hero-btn-secondary {
        min-width: 160px;
        min-height: 50px;
        font-size: clamp(0.95rem, 2.2vw, 1.1rem);
        padding: clamp(14px, 3.5vw, 18px) clamp(28px, 5.5vw, 36px);
    }
    
    /* Navigation adjustments */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(13, 17, 23, 0.95);
        padding: 1rem 0;
        backdrop-filter: blur(10px);
        border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Form adjustments */
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    /* Treatment cards adjustments */
    .treatments-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 2rem;
    }
    
    .glass-card {
        margin-bottom: 1rem;
    }
    
    .product-title {
        font-size: clamp(1.6rem, 4vw, 1.8rem);
    }
    
    .product-subtitle {
        font-size: clamp(1rem, 3vw, 1.1rem);
    }
    
    .product-benefits li {
        font-size: clamp(0.95rem, 2.5vw, 1rem);
    }
}

/* === TABLET PORTRAIT (768px and below) === */
@media (max-width: 768px) {
    /* Hero section refinements */
    .hero-content {
        padding: clamp(40px, 6vh, 70px) 5% clamp(30px, 5vh, 50px);
        gap: clamp(1rem, 3vw, 1.8rem);
        min-height: 100vh;
        position: relative;
    }

    .hero-callout {
        position: absolute;
        bottom: 5px;
        left: 5%;
        width: auto;
        max-width: 300px;
    }
    
    .hero-callout .callout-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-callout .hero-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        min-height: auto;
    }

    .feature-item {
        display: none;
    }
    
    .hero-features {
        display: flex;
        flex-direction: column;
    }

    .hero-btn,
    .hero-btn-secondary {
        min-width: 150px;
        min-height: 48px;
        font-size: clamp(0.9rem, 2.8vw, 1.05rem);
        padding: clamp(12px, 3.2vw, 16px) clamp(24px, 5.2vw, 32px);
    }
    
    .doctor-credentials {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .credentials-text {
        text-align: center;
    }

    .video-description {
        font-size: clamp(1rem, 3vw, 1.1rem);
        padding: 0 1rem;
    }
    
    .nav-controls {
        gap: 10px;
    }
    
    .language-switcher {
        order: 2;
    }
    
    .hamburger {
        order: 1;
    }
    
    .amoforms_iframe {
        max-width: 95% !important;
        margin: 10px auto !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 100vh;
        padding: clamp(30px, 5vh, 50px) 5% 40px;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    
    .hero-content {
        padding: clamp(30px, 5vh, 60px) 5% 0;
        gap: 1.5rem;
        flex: 1;
    }
    
    .callout-text {
        display: block;
    }

    /* BOTÓN EN FLUJO NORMAL (NO FIJO) */
    .hero-callout {
        max-width: 100%;
        margin-top: auto; /* Empuja el callout hacia abajo */
        padding-top: 2rem; /* Añade espacio superior */
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-callout > .callout-text { /* El texto "Tu cuerpo tiene las respuestas..." */
        order: 1; /* Aparecerá primero */
    }
    
    .hero-callout > .hero-btn { /* El botón "Descubre más" */
        order: 2; /* Aparecerá segundo */
        width: 100%; /* El botón ocupa todo el ancho de su contenedor */
    }
    
    .hero-btn {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }

    .hero-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .neumorphic-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .amoforms_iframe {
        max-width: 100% !important;
        margin: 5px auto !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .hero-callout {
        padding: 15px 0 35px;
    }
    
    .hero-btn,
    .hero-btn-secondary {
        min-width: 180px;
        min-height: 50px;
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .callout-text {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }
    
    .amoforms_iframe {
        border-radius: 6px !important;
    }
}

@media (max-width: 360px) {
    .hero-btn,
    .hero-btn-secondary {
        min-width: 160px;
        min-height: 48px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .hero-callout {
        padding: 10px 0 30px;
    }
    
    .callout-text {
        font-size: clamp(0.9rem, 4.5vw, 1.1rem);
    }
}