/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #039BE5, #0288D1);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    background: linear-gradient(135deg, #039BE5, #0288D1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

/* Header Banner Styles */
.header-banner {
    width: 100%;
    text-align: center;
    padding: 0;
    margin-top: -22px;
}

.main-banner {
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

/* Logo link styles - Sin efectos */
.logo-link {
    display: inline-block;
}

/* Hero Section - Layout con pasos */
.hero {
    background: linear-gradient(135deg, #039BE5, #0288D1);
    color: white;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -59px;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    gap: 3rem;
    align-items: center;
    height: 100%;
}

/* Lado Izquierdo - Texto justificado */
.hero-left {
    text-align: left;
    padding-right: 2rem;
}

.hero-left h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.hero-left p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
    text-align: justify;
}

/* Línea divisora */
.divider-line {
    width: 2px;
    height: 80%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.8), rgba(255,255,255,0.3), transparent);
    margin: 0 auto;
}

/* Lado Derecho - Pasos sin título */
.hero-right {
    padding-left: 2rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.step-number {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Appointment Button - Alineado a la izquierda */
.appointment-button {
    margin: 2rem 0;
    text-align: left;
}

/* Google Calendar button styling - Sin movimiento */
.appointment-button button {
    background-color: #ffffff !important;
    color: #039BE5 !important;
    border: 3px solid #ffffff !important;
    padding: 20px 40px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-family: 'Arial', sans-serif !important;
    outline: none;
    display: inline-block;
    transform: none !important;
}

.appointment-button button:hover {
    background-color: #0277BD !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    transform: none !important;
}

.appointment-button button:active {
    background-color: #01579B !important;
    transform: none !important;
}

/* Copyright text - Hasta abajo siempre */
.copyright {
    color: white;
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
    opacity: 0.9;
    padding: 1rem 2rem;
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Privacy Policy link styling */
.copyright a {
    color: inherit;
    text-decoration: underline;
    font-weight: inherit;
    opacity: inherit;
}

.copyright a:hover {
    color: inherit;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-left h1 {
        font-size: 3.5rem;
    }
    
    .hero-left p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }
    
    .header-banner {
        margin-top: -5px;
        padding: 0.2rem 0;
    }
    
    .main-banner {
        max-height: 140px;
    }
    
    .hero {
        height: auto;
        min-height: calc(100vh - 120px);
        padding: 0 1.5rem 1rem;
        margin-top: -10px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-left, .hero-right {
        padding: 0;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .hero-left h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .hero-left p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .divider-line {
        width: 80%;
        height: 2px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.8), rgba(255,255,255,0.3), transparent);
    }
    
    .appointment-button {
        text-align: center;
    }
    
    .appointment-button button {
        padding: 18px 35px !important;
        font-size: 1.2rem !important;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .star-icon {
        width: 28px;
        height: 28px;
    }
    
    .footer-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-banner {
        margin-top: 0;
        padding: 0.1rem 0;
    }
    
    .main-banner {
        max-height: 120px;
    }
    
    .hero {
        padding: 0 1rem 0.5rem;
        margin-top: -5px;
    }
    
    .hero-container {
        gap: 1.5rem;
    }
    
    .hero-left h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-left p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .step {
        gap: 0.8rem;
        padding: 0.8rem 0;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-content h3 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.85rem;
    }
    
    .appointment-button button {
        padding: 16px 30px !important;
        font-size: 1rem !important;
        letter-spacing: 0.5px !important;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-brand h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 320px) {
    .main-banner {
        max-height: 100px;
    }
    
    .hero {
        padding: 0 0.5rem 0.5rem;
        margin-top: 0;
    }
    
    .hero-left h1 {
        font-size: 1.8rem;
    }
    
    .hero-left p {
        font-size: 0.9rem;
    }
    
    .appointment-button button {
        padding: 14px 25px !important;
        font-size: 0.9rem !important;
    }
}

/* Media query específica para móviles en el rango problemático: 616px-873px de altura */
@media (min-height: 616px) and (max-height: 873px) and (max-width: 768px) {
    html, body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    main {
        min-height: 100vh;
        height: auto;
        justify-content: space-between;
    }
    
    .header-banner {
        padding: 0.3rem 0;
        margin-top: -10px;
        flex-shrink: 0;
    }
    
    .main-banner {
        max-height: 100px;
    }
    
    .hero {
        padding: 0.5rem 2rem 0.5rem;
        margin-top: -10px;
        flex: 1;
        min-height: auto;
        display: flex;
        align-items: flex-start;
    }
    
    .hero-container {
        margin-top: 1rem;
    }
    
    .hero-left h1 {
        font-size: 3rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-left p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .copyright {
        padding: 1rem 2rem;
        font-size: 0.85rem;
        margin-top: auto;
        flex-shrink: 0;
        position: relative;
        bottom: 0;
    }
}

/* Media queries para altura pequeña - Siempre scroll */
@media (max-height: 600px) {
    html, body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    main {
        min-height: 100vh;
        height: auto;
        justify-content: flex-start;
    }
    
    .header-banner {
        padding: 0.2rem 0;
        margin-top: -5px;
        flex-shrink: 0;
    }
    
    .main-banner {
        max-height: 60px;
    }
    
    .hero {
        padding: 0.5rem 2rem 1rem;
        margin-top: -5px;
        flex: 1;
        min-height: auto;
    }
    
    .hero-left h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-left p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .copyright {
        padding: 1rem;
        font-size: 0.8rem;
        margin-top: auto;
        flex-shrink: 0;
    }
}

/* Para pantallas muy bajas (móvil horizontal pequeño) */
@media (max-height: 450px) {
    .main-banner {
        max-height: 50px;
    }
    
    .hero-left h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-left p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .copyright {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
}