/* style.css */

/* --- Variables y Reset Básico --- */
:root {
    --primary-color: #1C3D62;
    /*#004d40 - 1C3D62*/
    /* Verde oscuro para la identidad de la firma */
    --secondary-color: #ffb300;
    /* Amarillo/Ámbar para acentos */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --max-width: 1200px;
    --biscay-color: #1C3D62;
    /* Usado para Header/Footer */
    --white-text: #ffffff;
    /* Usado para enlaces en fondo oscuro */

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 20px;
    overflow: hidden;
}

/* --- Encabezado y Navegación (Sticky) --- */
header {
    background: var(--biscay-color);
    /*#fff #1C3D62*/
    /* Fondo blanco */
    color: var(--white-text);
    /*border-bottom: 1px solid var(--primary-color);*/
    border-bottom: 3px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /*box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);*/
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 1rem 0;*/
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    /*color: var(--primary-color);*/
    color: var(--white-text);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    /*color: var(--primary-color);*/
    color: var(--white-text);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
}

/* Menú Hamburguesa (Oculto en desktop) */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    /*color: var(--primary-color);*/
    color: var(--white-text);
}

/* --- Secciones Comunes --- */
section {
    padding: 60px 0;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

/* --- Hero y Carrusel (index.html) --- */
#hero {
    position: relative;
    height: 500px;
    /* Altura del carrusel */
    overflow: hidden;
    background: var(--light-bg);
}

.carousel-slide {
    display: none;
    /* Se mostrarán con JS */
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: absolute;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    display: flex;
}

.slide-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 10px;
}

.slide-content h3 {
    font-size: 3rem;
    margin: 0;
}

/* Imágenes de ejemplo (simuladas con color y texto) */
#slide-1 {
    background-image: url('../img/one.jpg');
}

#slide-2 {
    background-image: url('../img/two.jpg');
}

#slide-3 {
    background-image: url('../img/tree.jpg');
}


/* --- Sección #inicio --- */
#inicio p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Sección #empresa --- */
#empresa .card-container {
    display: flex;
    gap: 30px;
    justify-content: justify;

}

.card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-align: center;
}

.card p {
    text-align: justify;
}

/* --- Sección #servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: justify;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* --- sección #benficios ---*/
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.beneficios-item {
    border: 1px solid #ddd;
    /* --- padding: 25px; ---*/
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.beneficios-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.beneficios-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* --- Footer --- */
footer {
    /*background: var(--primary-color);*/
    background: var(--biscay-color);
    color: var(--white-text);
    padding: 20px 0;
    text-align: center;
    /*margin-top: 40px;*/
    margin-top: 20px;
}

footer a {
    color: var(--secondary-color);
    /* Los enlaces dentro del footer (si los hubiera) serán amarillos */
}

footer p {
    margin: 5px 0;
}

/* --- Footer --- */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #3498db;
    position: relative;
    padding-bottom: 10px;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    background-color: #3498db;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text {
    text-align: left;
    line-height: 1.5;
}

.contact-text strong {
    display: block;
    margin-bottom: 3px;
    color: #ecf0f1;
}

.contact-text a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: #3498db;
}

.social-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #34495e;
    color: #ecf0f7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.facebook:hover {
    background-color: #3b5998;
}

.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* --- Contacto (contacto.html) --- */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 8px;
}

#contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#contact-form input[type="text"],
#contact-form input[type="tel"],
#contact-form input[type="email"],
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact-form textarea {
    resize: vertical;
    height: 150px;
}

.btn-submit {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #ffa000;
}

/* --- Blog (blog.html) --- */
#blog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

#blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#blog-content p {
    font-size: 1.1rem;
    padding: 0 20px;
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: transform 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* --- Media Queries (Diseño Responsive) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        /*background: #fff;*/
        background: var(--biscay-color);
        position: absolute;
        top: 60px;
        /* Ajustar si el header tiene altura fija */
        left: 0;
        padding: 10px 0;
        border-top: 1px solid var(--light-bg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--white-text);
        padding: 10px 20px;
        /*border-bottom: 1px solid #eee;*/
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar {
        padding: 10px 20px;
    }

    #hero {
        height: 300px;
    }

    .slide-content h3 {
        font-size: 2rem;
    }

    #empresa .card-container {
        flex-direction: column;
    }
}