/* VARIABLES */
:root {
    --primary: #004a99;
    --accent: #fbc02d;
    --white: #ffffff;
    --dark: #222;
    --bg: #f4f4f4;
    --violeta: #8e3093;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; background: var(--bg); line-height: 1.5; }

/* --- PREDETERMINADO: PORTRAIT (VERTICAL) --- */

.main-header {
    background: var(--violeta);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap; /* Evita que se rompa en dos líneas */
}

/* Menú Hamburguesa Portrait */
#menu-check { display: none; }
.menu-button { cursor: pointer; display: block; }
.menu-button span, .menu-button span::before, .menu-button span::after {
    display: block; background: var(--white); height: 3px; width: 25px; position: relative;
}
.menu-button span::before { content: ''; position: absolute; top: -8px; width: 100%; height: 100%; background: inherit; }
.menu-button span::after { content: ''; position: absolute; top: 8px; width: 100%; height: 100%; background: inherit; }

.nav-menu {
    display: none; /* Oculto en Portrait hasta que se hace clic */
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: var(--primary);
    text-align: center;
}

#menu-check:checked ~ .nav-menu { display: block; }

.nav-menu ul { list-style: none; }
.nav-menu ul li a {
    display: block; padding: 15px;
    color: var(--white); text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Hero Portrait */
.hero { background: var(--white); padding: 2rem 1rem; text-align: center; border-bottom: 4px solid var(--violeta); }
.hero-text h1 { color: var(--primary); font-size: 1.8rem; margin: 1rem 0; }
p.hero-text { text-decoration: none; color: yellow; }
.phone-box { background: var(--violeta); padding: 10px; border-radius: 5px; font-weight: bold; display: inline-block; }
.phone-box a { text-decoration: none; color: #FFFFFF; }
p.phone-box { text-decoration: none; color: #FFFFFF; margin-top:18px; }

/* Tabla Portrait */
.data-table thead { display: none; }
.data-table tr { display: block; margin-bottom: 1rem; background: white; padding: 10px; border-radius: 5px; }
.data-table td { 
    display: block; text-align: right; padding: 8px; 
    position: relative; padding-left: 45%; border-bottom: 1px solid #eee;
}
.data-table td::before {
    content: attr(data-label); position: absolute; left: 10px;
    font-weight: bold; color: var(--primary);
}

/* Footer */
footer { background: var(--dark); color: #ccc; padding: 2rem; text-align: center; }
.share-wa a { color: var(--accent); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* --- LANDSCAPE (HORIZONTAL / DESKTOP) --- */

@media (orientation: landscape), (min-width: 992px) {
    
    .menu-button { display: none; } /* Desaparece hamburguesa */
    
    .nav-menu { 
        display: block !important; 
        position: static; 
        width: auto; 
        background: transparent;
    }

    .nav-menu ul { display: flex; gap: 15px; }
    .nav-menu ul li a { border: none; padding: 5px; font-size: 0.9rem; }
    .nav-menu ul li a:hover { color: var(--accent); }

    .hero-content { display: flex; align-items: center; justify-content: center; gap: 50px; text-align: left; }
    .mobile-break { display: none; }

    .data-table { display: table; width: 100%; }
    .data-table thead { display: table-header-group; background: var(--primary); color: white; }
    .data-table tr { display: table-row; }
    .data-table td { display: table-cell; text-align: left; padding: 12px; padding-left: 12px; }
    .data-table td::before { display: none; }
}