:root {
    /* Novo Salud Brand Colors - Vivid */
    --teal: #105a55;
    --teal-dark: #0b3d39;
    --teal-light: #e5efef;
    --beige: #d48b26;
    --beige-light: #fdf6ec;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-dark: #4A4A4A;
    --gray-light: #E0E0E0;
    --error: #E53E3E;
    --success: #38A169;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--white);
    color: var(--black);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Accents for a premium touch without compromising the white background requirement */
.background-accents {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.background-accents::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('bg_watermark.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08; /* Efecto marca de agua súper sutil */
    mix-blend-mode: multiply;
    z-index: -1;
}

.accent-blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 10s ease-in-out infinite alternate;
}

.accent-blob.teal {
    width: 600px;
    height: 600px;
    background: var(--teal);
    top: -100px;
    right: -100px;
}

.accent-blob.beige {
    width: 500px;
    height: 500px;
    background: var(--beige);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.05); }
}

/* Main Layout */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    padding: 0; /* Removido para evitar exceso de espacio */
    display: flex;
    justify-content: center; /* Centrado para estilo primera plana */
    z-index: 10;
    position: relative;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.logo {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0; 
    object-fit: contain;
    padding: 1rem 0 0 0;
}

.chimbote-title {
    color: var(--beige);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 12px;
    margin-left: 12px; /* Compensate for tracking */
    text-align: center;
    text-transform: uppercase;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 4rem;
    padding: 4rem 0;
}

.text-section {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    background-color: var(--beige-light);
    color: var(--teal-dark);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--beige);
}

.headline {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.headline span {
    color: var(--teal);
    position: relative;
    white-space: nowrap;
}

.headline span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--beige);
    z-index: -1;
    opacity: 0.5;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    max-width: 500px;
}

.tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 184, 172, 0.15); /* Teal border */
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-dark);
    font-size: 1.05rem;
    line-height: 1.4;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info svg {
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.clinic-image-wrapper {
    margin: 2rem auto;
    width: 100%;
    max-width: 420px; /* Ancho ajustado para imágenes verticales (retrato) */
    box-sizing: border-box; /* Previene desbordes en móviles */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(16, 90, 85, 0.15);
    position: relative;
    border: 8px solid white;
    background-color: var(--beige-light);
}

.clinic-image {
    width: 100%;
    height: auto; /* Mantiene la proporción original de la foto */
    display: block;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.clinic-image-wrapper:hover .clinic-image {
    transform: scale(1.08);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Form Section */
.form-section {
    flex: 0 1 450px;
}

.form-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(107, 158, 155, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--black);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.form-group.focused label {
    color: var(--teal);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--black);
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.phone-prefix {
    padding: 1rem 0.5rem 1rem 1.25rem;
    font-weight: 600;
    color: var(--gray-dark);
    background-color: var(--beige-light);
    border-right: 1px solid var(--gray-light);
    user-select: none;
}

.phone-input-wrapper input {
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    flex: 1;
}

.form-group.focused .phone-input-wrapper {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #A0AEC0;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    background-color: var(--teal);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 158, 155, 0.2);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(5px);
}

.status-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-message.success {
    background-color: #F0FFF4;
    color: var(--success);
    border: 1px solid #C6F6D5;
}

.status-message.error {
    background-color: #FFF5F5;
    color: var(--error);
    border: 1px solid #FED7D7;
}

/* Footer */
.footer {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-light);
    color: var(--gray-dark);
    font-size: 0.875rem;
}

/* Animations & Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOutIntro 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

.intro-logo {
    width: 80%;
    max-width: 550px;
    height: auto;
    animation: pulseLogo 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseLogo {
    0% { transform: scale(0.6); opacity: 0; }
    30% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; } /* Efecto zoom out al terminar */
}

@keyframes fadeOutIntro {
    to { 
        opacity: 0; 
        visibility: hidden; 
    }
}

.slide-down {
    animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
    opacity: 0;
    transform: translateY(-30px);
}

.slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 2.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.4s forwards;
    opacity: 0;
}

.fade-in-late {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
    opacity: 0;
}

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

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* WhatsApp Multi-Button Menu */
.whatsapp-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    animation: bounceIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 3.5s forwards;
    opacity: 0;
    transform: scale(0);
}

.whatsapp-menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-container:hover .whatsapp-menu,
.whatsapp-container:focus-within .whatsapp-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-option {
    background-color: white;
    color: #25D366;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-option:hover {
    background-color: #f0fdf4;
    transform: scale(1.05);
    color: #1DA851;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        gap: 3rem;
    }

    .text-section {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .headline {
        font-size: 3rem;
    }

    .tagline {
        justify-content: center;
    }

    .form-section {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }

    .headline {
        font-size: 2.5rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
