/*
 Theme Name:   Astra Child Peluqueria
 Theme URI:    https://tu-dominio-temporal.com
 Description:  Tema hijo para el sistema de agendamiento canino.
 Author:       Sebastián - Novobit
 Template:     astra
 Version:      1.0.0
*/

/* =========================================
   HEADER PERSONALIZADO
========================================= */
.custom-header {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.custom-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.custom-menu a {
    text-decoration: none;
    color: #34495e;
    font-weight: 600;
    transition: color 0.3s ease;
}

.custom-menu a:hover {
    color: #3498db;
}

.btn-header-reserva {
    background-color: #3498db;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-header-reserva:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* =========================================
   FOOTER PERSONALIZADO
========================================= */
.custom-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 80px 5% 20px;
    margin-top: 60px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-col p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* =========================================
   Responsive Header (Menú Hamburguesa)
========================================= */

/* Ocultar el botón hamburguesa en Desktop y aplicar RESET contra Astra */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 24px;
    background: transparent !important; /* Mata el fondo azul de Astra */
    border: none !important; /* Mata el borde de Astra */
    box-shadow: none !important; /* Quita sombras por defecto */
    cursor: pointer;
    padding: 0 !important; 
    z-index: 1001;
    min-width: auto !important;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--calipso-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

/* Media Query para Móviles y Tablets */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }

    /* Panel lateral del menú */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        padding-top: 100px; /* Deja espacio para no chocar con la X */
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-navigation.is-active {
        right: 0;
    }

    /* Lista de enlaces centrada y limpia */
    .custom-menu {
        flex-direction: column;
        align-items: center; /* Centra los elementos */
        padding: 0 20px;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .custom-menu li {
        width: 100%;
        text-align: center;
    }

    .custom-menu a {
        font-size: 1.2rem;
        display: block;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        color: #2c3e50;
    }

    /* Arreglo para el botón de Reserva para que no se aplaste */
    .btn-header-reserva {
        margin-top: 20px;
        display: block !important;
        width: 100%;
        box-sizing: border-box;
        border-bottom: none !important;
        padding: 15px !important;
    }

    /* Animación perfecta de la 'X' */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }
}