/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuente global */
body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Layout principal */
.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.background-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Cabecera */
header {
    background-color: rgba(128, 0, 0, 0.5);
    color: white;
    padding: 40px 40px;
    font-weight: 900;
    position: relative;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
}

.header-logo img {
    height: 120px;
    width: auto;
}

.header-phone,
.header-location {
    display: flex;
    align-items: center;
    color: white;
    font-size: 2rem;
}

.header-phone .icon,
.header-location .icon {
    margin-right: 8px;
    font-size: 4rem;
}

.header-phone a {
    color: white;
    text-decoration: none;
}

.header-phone a:hover {
    text-decoration: underline;
}

.header-location .location-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    white-space: nowrap;
}

/* Botones centrales */
.button-container {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 5;
}

.btn {
    background-color: #9F3131;
    color: white;
    padding: 24px 64px;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.35);
}

.btn:hover {
    background-color: #550000;
}

/* Media query tablet y móvil */
@media (max-width: 769px) {
    header {
        padding: 20px 15px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-logo img {
        height: 60px;
    }

    .header-phone,
    .header-location {
        font-size: 1rem;
    }

    .header-phone .icon,
    .header-location .icon {
        font-size: 1.8rem;
        margin-right: 6px;
    }

    .button-container {
        top: auto;
        bottom: 15%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 320px;
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        padding: 14px 36px;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* Media query para pantallas muy pequeñas (iPhone 5/SE y menores) */
@media (max-width: 360px) {
    header {
        padding: 15px 10px;
    }

    .header-logo img {
        height: 50px;
    }

    .header-phone,
    .header-location {
        font-size: 0.9rem;
    }

    .header-phone .icon,
    .header-location .icon {
        font-size: 1.5rem;
    }

    .button-container {
        bottom: 12%;
        gap: 8px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Media query para tablets en orientación horizontal y resoluciones intermedias */
@media (min-width: 770px) and (max-width: 1024px) {
    .header-inner {
        gap: 50px;
    }

    .header-phone,
    .header-location {
        font-size: 1.5rem;
    }

    .header-phone .icon,
    .header-location .icon {
        font-size: 2.5rem;
    }

    .btn {
        padding: 18px 48px;
        font-size: 1.4rem;
    }
}
