/* Estilos específicos para template.html */

/* Estilos para el pop-up */
#privacy-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

#privacy-popup button {
    background: #149c97;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#privacy-popup button:hover {
    background: #117d78;
}

/* Estilos para el fondo aleatorio con overlay */
#bg:before {
    background: rgba(185, 151, 141, 0.8) !important; /* Velo con el color rosita original (#b9978d) */
}

/* Estilo para el teléfono del header */
#header .content .inner p a[href^="tel:"] {
    font-weight: bold !important;
    font-size: 1.2em !important;
}

/* Reducir separación del footer */
#footer {
    margin-top: 0.2rem !important;
}

/* Ajustar posición del logo para que esté más cerca de la línea - REGLA GENERAL */
#header .logo {
    width: 18rem !important;
    height: 10rem !important;
    line-height: 15rem !important;
    margin-bottom: 0 !important;
    padding-bottom: 0rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#header .logo img {
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 7rem !important;
}

/* Estilos para el contenido principal del template */
#main_content {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1000px;
    position: relative;
    z-index: 4;
    width: 90%;
    /* Animación de entrada similar al header */
    -moz-transform: translateY(0.25rem);
    -webkit-transform: translateY(0.25rem);
    -ms-transform: translateY(0.25rem);
    transform: translateY(0.25rem);
    -moz-transition: opacity 0.75s ease, -moz-transform 0.75s ease;
    -webkit-transition: opacity 0.75s ease, -webkit-transform 0.75s ease;
    -ms-transition: opacity 0.75s ease, -ms-transform 0.75s ease;
    transition: opacity 0.75s ease, transform 0.75s ease;
    -moz-transition-delay: 0.5s;
    -webkit-transition-delay: 0.5s;
    -ms-transition-delay: 0.5s;
    transition-delay: 0.5s;
    opacity: 1;
}

/* Estado inicial durante la carga */
body.is-preload #main_content {
    -moz-transform: translateY(1rem);
    -webkit-transform: translateY(1rem);
    -ms-transform: translateY(1rem);
    transform: translateY(1rem);
    opacity: 0;
}

#main_content h1, #main_content h2, #main_content h3, #main_content h4 {
    color: #ffffff;
}

#main_content p {
    color: #ffffff;
    line-height: 1.6;
}

#main_content a {
    color: #149c97;
    border-bottom-color: #149c97;
}

#main_content a:hover {
    color: #117d78;
}

#main_content ul, #main_content ol {
    color: #ffffff;
}

#main_content li {
    color: #ffffff;
}

/* Asegurar que las imágenes se alineen correctamente dentro de main_content */
#main_content .image.left {
    float: left !important;
    padding: 0 1.5em 1em 0 !important;
    margin: 0.25em 0 0 0 !important;
    max-width: 40% !important;
    clear: left !important;
}

#main_content .image.right {
    float: right !important;
    padding: 0 0 1em 1.5em !important;
    margin: 0.25em 0 0 0 !important;
    max-width: 40% !important;
    clear: right !important;
}

#main_content .image.left img,
#main_content .image.right img {
    width: 100% !important;
    height: auto !important;
    border-radius: 5px !important;
}

/* Asegurar que los párrafos fluyan alrededor de las imágenes */
#main_content p {
    text-align: justify !important;
}

/* Clearfix para asegurar que el contenedor contenga los elementos flotantes */
#main_content:after {
    content: "";
    display: table;
    clear: both;
}

/* Asegurar que los títulos también respeten los floats */
#main_content h1, #main_content h2, #main_content h3, #main_content h4 {
    clear: both !important;
    margin-top: 2rem !important;
}

#main_content h1:first-child, #main_content h2:first-child, #main_content h3:first-child, #main_content h4:first-child {
    margin-top: 0 !important;
}

/* Estilos para botones en main_content */
#main_content .button,
#main_content a.button,
#main_content input[type="submit"],
#main_content input[type="reset"],
#main_content input[type="button"],
#main_content button {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 5px !important;
    padding: 0.75rem 1.5rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}

#main_content .button:hover,
#main_content a.button:hover,
#main_content input[type="submit"]:hover,
#main_content input[type="reset"]:hover,
#main_content input[type="button"]:hover,
#main_content button:hover {
    background: #ffffff !important;
    color: #b9978d !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2) !important;
}

/* RESPONSIVE STYLES */

/* Desktop - Página a 100% altura */
@media screen and (min-width: 737px) {
    #wrapper {
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    #main_content {
        flex-grow: 1 !important;
        display: block !important;
        margin: 2rem auto !important;
        width: 90% !important;
        max-width: 1000px !important;
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
    
    /* Asegurar que el header tenga la estructura correcta */
    #header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    
    #header .logo {
        margin-bottom: 0 !important;
    }
    
    #header .content {
        margin-bottom: 2rem !important;
    }
    
    #header nav {
        margin-bottom: 0 !important;
    }
}

/* Tablet/Mobile Large */
@media screen and (max-width: 736px) {
    #header .logo {
        width: 75% !important;
        height: 75% !important;
        line-height: 4.75rem !important;
        margin-top: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    #header .logo img {
        margin-top: 0 !important;
    }
    
    /* Hacer que el menú suba en responsive */
    #header nav {
        margin-top: 0 !important;
    }
    
    /* Reducir padding del menú para evitar solapamiento con línea blanca */
    #header nav ul li a {
        padding: 0 0.8rem 0 1rem !important;
    }
    
    #main_content {
        padding: 2rem;
        margin: 1rem;
    }
}

/* Mobile Small */
@media screen and (max-width: 480px) {
    #header .logo img {
        margin-top: 0 !important;
        max-width: 85% !important;
        height: auto !important;
    }
    
    #header .logo {
        margin-bottom: 0.25rem !important;
    }
    
    #main_content {
        padding: 1.5rem;
        margin: 0.5rem;
    }
}

/* Estilos para enlaces de contacto */
.phone-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

.phone-link:hover {
    color: #cccccc !important;
}

/* Estilos para el icono de WhatsApp */
.contact-options {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.whatsapp-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.whatsapp-link:hover {
    background: #128C7E !important;
    transform: scale(1.1) !important;
}

.whatsapp-link svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
}

/* Responsive para contacto */
@media screen and (max-width: 480px) {
    .contact-options {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .whatsapp-link {
        width: 40px !important;
        height: 40px !important;
    }
    
    .whatsapp-link svg {
        width: 20px !important;
        height: 20px !important;
    }
} 