/* ==========================================
   TÉCNICOS PALACIOS
   ESTILOS PRINCIPALES
========================================== */


/* ==========================================
   VARIABLES
========================================== */

:root {
    --primary: #0b3d91;
    --primary-dark: #082c6b;
    --accent: #00a8e8;

    --dark: #111827;
    --text: #4b5563;
    --light: #f5f7fa;
    --white: #ffffff;

    --border: #e5e7eb;

    --container: 1180px;

    --radius: 16px;

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    --transition: 0.3s ease;
}


/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}


/* ==========================================
   UTILIDADES
========================================== */

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin: 10px 0 15px;
}

.section-header p {
    font-size: 1.05rem;
}

.section-tag {
    display: inline-block;

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: var(--primary);
}


/* ==========================================
   BOTONES
========================================== */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 24px;

    border-radius: 8px;

    font-weight: 700;

    transition: var(--transition);

    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--border);

    background: var(--white);

    color: var(--dark);
}

.btn-secondary:hover {
    border-color: var(--primary);

    color: var(--primary);
}

.btn-whatsapp {
    background: #25d366;

    color: white;
}

.btn-whatsapp:hover {
    background: #1ebe5d;

    transform: translateY(-2px);
}


/* ==========================================
   HEADER
========================================== */

.header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.95);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);
}

.header-container {
    min-height: 76px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.logo {
    font-size: 1.35rem;

    font-weight: 800;

    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

.nav {
    display: flex;

    align-items: center;

    gap: 30px;
}

.nav a {
    font-size: 0.95rem;

    font-weight: 600;

    color: var(--dark);

    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary);
}


/* ==========================================
   HERO
========================================== */

.hero {
    min-height: 700px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            #f7faff 0%,
            #eef5ff 100%
        );
}

.hero-container {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 70px;

    padding: 80px 0;
}

.hero-content {
    max-width: 650px;
}

.hero-tag {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 0.8rem;

    font-weight: 800;

    letter-spacing: 1.5px;

    color: var(--primary);
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.5rem);

    line-height: 1.05;

    color: var(--dark);

    margin-bottom: 25px;
}

.hero p {
    max-width: 580px;

    font-size: 1.15rem;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;
}


/* ==========================================
   HERO - IMAGEN
========================================== */

.hero-image {
    width: 100%;
}

.hero-photo {
    position: relative;

    overflow: hidden;

    border-radius: 24px;

    box-shadow: var(--shadow);
}

.hero-photo img {
    width: 100%;

    height: 500px;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.hero-photo:hover img {
    transform: scale(1.03);
}

.hero-badge {
    position: absolute;

    left: 25px;

    bottom: 25px;

    display: flex;

    flex-direction: column;

    padding: 16px 20px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.95);

    box-shadow: var(--shadow);
}

.hero-badge strong {
    color: var(--dark);

    font-size: 0.95rem;
}

.hero-badge span {
    color: var(--text);

    font-size: 0.85rem;
}


/* ==========================================
   SERVICIOS
========================================== */

.services {
    background: var(--white);
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.service-card {
    padding: 35px;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    background: var(--white);

    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow);

    border-color: transparent;
}

.service-icon {
    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 22px;

    border-radius: 14px;

    background: #edf4ff;

    font-size: 1.7rem;
}

.service-card h3 {
    margin-bottom: 12px;

    font-size: 1.35rem;

    color: var(--dark);
}


/* ==========================================
   ESPECIALIDADES
========================================== */

.specialties {
    background: var(--light);
}

.specialties-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.specialty-card {
    position: relative;

    overflow: hidden;

    min-height: 380px;

    padding: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    border-radius: var(--radius);

    background: var(--white);

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

    transition: var(--transition);
}

.specialty-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow);
}

.specialty-card img {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.specialty-card:hover img {
    transform: scale(1.06);
}


/* Capa oscura sobre la imagen */

.specialty-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.05)
        );
}


/* Contenido de la tarjeta */

.specialty-content {
    position: relative;

    z-index: 2;

    padding: 30px;

    color: white;
}

.specialty-content h3 {
    margin-bottom: 6px;

    font-size: 1.7rem;

    color: white;
}

.specialty-content p {
    margin: 0;

    color: rgba(255, 255, 255, 0.9);
}


/* ==========================================
   CTA
========================================== */

.cta {
    padding: 80px 0;

    background: var(--primary);

    color: white;
}

.cta-container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}

.cta .section-tag {
    color: #b8dcff;
}

.cta h2 {
    max-width: 700px;

    margin: 8px 0 12px;

    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.1;
}

.cta p {
    color: #dbeafe;
}

.cta .btn-primary {
    flex-shrink: 0;

    background: white;

    color: var(--primary);
}

.cta .btn-primary:hover {
    background: #f3f4f6;
}


/* ==========================================
   FOOTER
========================================== */

.footer {
    padding: 60px 0 25px;

    background: #0b1220;

    color: #cbd5e1;
}

.footer-content {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 60px;

    padding-bottom: 40px;
}

.footer h3 {
    color: white;

    font-size: 1.4rem;

    margin-bottom: 15px;
}

.footer h4 {
    color: white;

    margin-bottom: 15px;
}

.footer p {
    margin-bottom: 5px;
}

.footer-bottom {
    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    font-size: 0.9rem;
}


/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width: 900px) {

    .nav {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-photo img {
        height: 450px;
    }

    .services-grid,
    .specialties-grid {
        grid-template-columns: 1fr;
    }

    .specialty-card {
        min-height: 400px;
    }

    .cta-container {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}


/* ==========================================
   RESPONSIVE - MÓVIL
========================================== */

@media (max-width: 600px) {

    .section {
        padding: 70px 0;
    }


    /* HEADER */

    .header-container {
        min-height: 68px;

        gap: 15px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .header .btn-whatsapp {
        padding: 10px 15px;

        font-size: 0.85rem;
    }


    /* HERO */

    .hero-container {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-photo img {
        height: 350px;
    }

    .hero-badge {
        left: 15px;

        bottom: 15px;

        padding: 12px 15px;
    }

    .hero-badge strong {
        font-size: 0.85rem;
    }

    .hero-badge span {
        font-size: 0.75rem;
    }


    /* BOTONES */

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }


    /* SERVICIOS */

    .service-card {
        padding: 28px;
    }


    /* ESPECIALIDADES */

    .specialty-card {
        min-height: 350px;

        padding: 0;
    }

    .specialty-content {
        padding: 25px;
    }

    .specialty-content h3 {
        font-size: 1.5rem;
    }


    /* CTA */

    .cta {
        padding: 65px 0;
    }

    .cta .btn {
        width: 100%;
    }


    /* FOOTER */

    .footer {
        padding-top: 50px;
    }
}