/* =========================
   VARIABLES
========================= */

:root {
    --red: #ed0909;
    --red-dark: #ca0000;
    --black: #111;
    --text: #333;
    --grey: #6f6f6f;
    --light-grey: #f7f7f7;
    --border: #e4e4e4;
    --white: #fff;
}


/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}

.content-small {
    max-width: 850px;
}

.section {
    padding: 65px 0;
}

.section-grey {
    background: var(--light-grey);
}


/* =========================
   HEADER
========================= */

.header {
    height: 74px;
    background: #fff;
    border-bottom: 1px solid #eee;

    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    height: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 30px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    color: var(--red);
    font-size: 19px;
}

.logo-text span {
    font-weight: 800;
}

.logo-text small {
    font-size: 9px;
    margin-top: 3px;
    letter-spacing: 1px;
}


/* =========================
   MENU
========================= */

.menu {
    display: flex;
    align-items: center;
    gap: 28px;

    font-size: 13px;
    font-weight: 600;
}

.menu a {
    transition: 0.2s;
}

.menu a:hover {
    color: var(--red);
}

.menu-phone {
    background: var(--red);
    color: #fff !important;

    padding: 10px 15px;
    border-radius: 3px;
}

.menu-phone:hover {
    background: var(--red-dark);
}

.menu-button {
    display: none;

    font-size: 27px;

    background: none;
    border: 0;

    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 380px;

    position: relative;

    display: flex;
    align-items: center;

    background-image:
        url("https://images.unsplash.com/photo-1558618666-fcd25c85cd64?auto=format&fit=crop&w=1800&q=85");

    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.40)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 43px;

    margin: 0 0 5px;

    line-height: 1.2;
}

.hero p {
    font-size: 18px;

    margin: 0 0 25px;
}


/* =========================
   BOTONES
========================= */

.btn-red {
    display: inline-block;

    background: var(--red);

    color: #fff;

    padding: 13px 22px;

    font-size: 13px;
    font-weight: 800;

    border-radius: 3px;

    transition: 0.2s;
}

.btn-red:hover {
    background: var(--red-dark);
}


/* =========================
   INTRO
========================= */

.phone-box {
    width: 285px;
    max-width: 100%;

    margin: 35px auto;

    text-align: center;
}

.phone-logo {
    padding: 8px;
    font-weight: 700;
}

.phone-logo strong {
    color: var(--black);
}

.phone-red,
.phone-black {
    display: block;

    padding: 12px;

    font-weight: 800;
}

.phone-red {
    background: var(--red);
    color: white;
}

.phone-black {
    background: #111;
    color: white;
}


/* =========================
   TITULOS
========================= */

.title-section {
    text-align: center;

    margin-bottom: 38px;
}

.title-section h2 {
    margin: 0 0 10px;

    font-size: 30px;

    color: #111;
}

.title-section p {
    color: var(--grey);

    max-width: 760px;

    margin: 15px auto 0;
}

.red-line {
    width: 80px;
    height: 3px;

    background: var(--red);

    margin: auto;
}


/* =========================
   FEATURES
========================= */

.features {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 30px 50px;

    max-width: 900px;

    margin: 40px auto;
}

.feature {
    display: flex;

    gap: 15px;
}

.feature-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    border: 2px solid var(--red);

    color: var(--red);

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: bold;
}

.feature h3 {
    font-size: 16px;

    margin: 0 0 5px;

    color: #222;
}

.feature p {
    margin: 0;

    font-size: 14px;

    color: var(--grey);
}

.center-text {
    text-align: center;

    max-width: 880px;

    margin: 30px auto;
}


/* =========================
   TARJETAS
========================= */

.service-cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    max-width: 950px;

    margin: auto;
}

.service-card {
    background: white;

    border-radius: 7px;

    overflow: hidden;

    border: 1px solid #eee;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.08);

    transition: 0.25s;
}

.service-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 30px
        rgba(0, 0, 0, 0.12);
}

.service-card img {
    width: 100%;
    height: 210px;

    object-fit: cover;
}

.service-card-content {
    padding: 20px;
}

.service-card-content h3 {
    margin: 0 0 8px;

    font-size: 18px;
}

.service-card-content p {
    margin: 0;

    font-size: 14px;

    color: var(--grey);
}


/* =========================
   LISTADO SERVICIOS
========================= */

.services-list {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.service-item {
    padding: 17px;

    border: 1px solid var(--border);

    background: #fff;

    font-weight: 600;

    font-size: 14px;
}

.service-item span {
    color: var(--red);

    margin-right: 7px;
}


/* =========================
   ZONAS
========================= */

.zones {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;
}

.zones span {
    padding: 10px 16px;

    background: white;

    border: 1px solid #ddd;

    border-radius: 100px;

    font-size: 13px;

    font-weight: 600;

    transition: .2s;
}

.zones span:hover {
    background: var(--red);

    color: white;

    border-color: var(--red);
}


/* =========================
   OPINIONES
========================= */

.reviews {
    display: grid;

    grid-template-columns:
        0.7fr 1fr 1fr;

    gap: 20px;

    max-width: 950px;

    margin: auto;
}

.rating,
.review {
    background: white;

    border: 1px solid var(--border);

    padding: 22px;

    border-radius: 7px;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.05);
}

.rating {
    text-align: center;
}

.rating strong {
    font-size: 20px;
}

.stars {
    color: #ffb600;

    font-size: 19px;

    letter-spacing: 2px;
}

.google {
    font-size: 21px;

    font-weight: bold;
}

.review-header {
    display: flex;

    align-items: center;

    gap: 10px;
}

.review-header small {
    display: block;

    color: #888;
}

.avatar {
    width: 40px;
    height: 40px;

    background: #eee;

    border-radius: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: bold;
}

.review p {
    font-size: 14px;
}


/* =========================
   MAPA
========================= */

.map {
    overflow: hidden;

    border-radius: 6px;

    border: 1px solid #ddd;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, .08);
}

.map iframe {
    display: block;

    width: 100%;
    height: 420px;

    border: 0;
}

.map-description {
    color: var(--grey);
}


/* =========================
   FAQ
========================= */

.faq {
    display: grid;

    gap: 10px;
}

.faq-item {
    background: white;

    border: 1px solid #ddd;

    border-radius: 5px;

    overflow: hidden;
}

.faq-question {
    width: 100%;

    padding: 18px;

    border: 0;

    background: white;

    text-align: left;

    display: flex;

    align-items: center;
    justify-content: space-between;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;
}

.faq-question span {
    color: var(--red);

    font-size: 21px;

    transition: .2s;
}

.faq-answer {
    display: none;

    padding: 0 18px 18px;

    color: var(--grey);

    font-size: 14px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}


/* =========================
   CTA FINAL
========================= */

.final-cta {
    padding: 55px 0;

    background: var(--red);

    color: white;

    text-align: center;
}

.final-cta h2 {
    margin: 0 0 5px;

    font-size: 30px;
}

.final-cta p {
    margin: 0 0 20px;
}

.btn-white {
    display: inline-block;

    background: white;

    color: #111;

    padding: 13px 30px;

    font-weight: 800;

    border-radius: 3px;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #f1f1f1;

    border-top: 1px solid #ddd;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.4fr 1fr 1fr 1fr;

    gap: 40px;

    padding: 50px 0;
}

.footer-logo {
    display: flex;

    gap: 10px;

    font-size: 25px;
}

.footer-logo div {
    display: flex;

    flex-direction: column;
}

.footer-logo strong {
    font-size: 17px;

    color: var(--red);
}

.footer-logo span {
    font-size: 13px;

    font-weight: bold;
}

.footer h3 {
    font-size: 12px;

    margin-top: 0;
}

.footer a,
.footer p {
    display: block;

    color: #656565;

    font-size: 13px;

    margin: 8px 0;
}

.footer a:hover {
    color: var(--red);
}

.copyright {
    border-top: 1px solid #ddd;

    padding: 18px;

    text-align: center;

    color: #777;

    font-size: 12px;
}


/* =========================
   BOTÓN FLOTANTE
========================= */

.floating-phone {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 999;

    background: var(--red);

    color: white;

    padding: 12px 18px;

    border-radius: 50px;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, .25);

    font-weight: bold;

    transition: .2s;
}

.floating-phone:hover {
    background: var(--red-dark);

    transform: translateY(-2px);
}


/* =========================
   TABLET
========================= */

@media (max-width: 950px) {

    .menu-button {
        display: block;
    }

    .menu {
        display: none;

        position: absolute;

        top: 74px;
        left: 0;

        width: 100%;

        background: white;

        flex-direction: column;

        align-items: stretch;

        padding: 20px;

        gap: 5px;

        border-bottom: 1px solid #ddd;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        padding: 12px;
    }

    .menu-phone {
        text-align: center;
    }


    .services-list {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .service-cards {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .reviews {
        grid-template-columns: 1fr;
    }


    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================
   MOVIL
========================= */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 28px);
    }

    .section {
        padding: 48px 0;
    }


    /* HERO */

    .hero {
        min-height: 420px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }


    /* TITULOS */

    .title-section h2 {
        font-size: 25px;
    }


    /* FEATURES */

    .features {
        grid-template-columns: 1fr;
    }


    /* TARJETAS */

    .service-cards {
        grid-template-columns: 1fr;
    }

    .service-card img {
        height: 220px;
    }


    /* SERVICIOS */

    .services-list {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr;
    }


    /* MAPA */

    .map iframe {
        height: 330px;
    }


    /* BOTON FIJO */

    .floating-phone {
        left: 15px;
        right: 15px;
        bottom: 15px;

        text-align: center;
    }

}