/* ==========================================================
   VARIABLES DE COLOR Y CONFIGURACIÓN BASE (SERENCO SPA)
   ========================================================== */
:root {
    --primary-color: #1E2538;       /* Azul Marino del logo */
    --accent-color: #E8641B;        /* Naranja principal */
    --accent-hover: #cf5311;        /* Naranja más oscuro para interacciones */
    --secondary-color: #C48B47;     /* Dorado/Bronce del subtítulo */
    --text-dark: #212529;           /* Texto principal */
    --text-muted: #6c757d;          /* Texto secundario */
    --bg-light: #F8F9FA;            /* Fondo claro para secciones alternadas */
    --bg-white: #FFFFFF;            /* Fondo blanco */
    --border-color: #E2E8F0;        /* Bordes suaves */
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Reset de estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================
   ESTRUCTURA DE CONTENEDORES Y REUTILIZABLES
   ========================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary-color);
}

.text-white {
    color: var(--bg-white);
}

.text-center {
    text-align: center;
}

.sub-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Grillas responsivas */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ==========================================================
   BOTONES
   ========================================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 100, 27, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: var(--bg-white);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.full-width {
    width: 100%;
}

/* ==========================================================
   HEADER Y NAVEGACIÓN
   ========================================================== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 10px 0; /* Un padding más ajustado para darle espacio al logo de 80px */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f3f5f8 0%, #e2e8f0 100%);
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.badge {
    background-color: rgba(232, 100, 27, 0.1);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ==========================================================
   NOSOTROS
   ========================================================== */
.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.check-list {
    margin-top: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.check-list i {
    color: var(--accent-color);
}

.about-img img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ==========================================================
   SERVICIOS
   ========================================================== */
.card-service {
    background-color: var(--bg-white);
    padding: 35px 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card-service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 37, 56, 0.05);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card-service:hover .icon-box {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.card-service h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.card-service p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================
   DIFERENCIADORES Y ESTADÍSTICAS
   ========================================================== */
.why-img img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.feature-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stats-section {
    padding: 60px 0;
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-box p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ==========================================================
   PROYECTOS
   ========================================================== */
.card-project {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-project img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card-project:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-info p {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================================
   CTA (HABLAR CON UN ESPECIALISTA)
   ========================================================== */
.cta-section {
    background: linear-gradient(rgba(30, 37, 56, 0.92), rgba(30, 37, 56, 0.92)), url('../img/por-que-elegirnos.jpg') center/cover;
    color: var(--bg-white);
    padding: 70px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ==========================================================
   CONTACTO Y FORMULARIO
   ========================================================== */
.contact-info h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 45px;
    height: 45px;
    background-color: rgba(232, 100, 27, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-item h4 {
    color: var(--primary-color);
    font-size: 1rem;
}

.info-item p, .info-item a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(232, 100, 27, 0.15);
}

/* ==========================================================
   BOTÓN WHATSAPP Y FOOTER
   ========================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.footer {
    background-color: var(--primary-color);
    color: #a0aec0;
    padding-top: 60px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* ==========================================================
   RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================================== */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none; /* Se activa vía JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}