﻿:root {
    font-size: 16px; /* Base para rems */
    --jaffa: #ED733F;
    --tamarillo: #A81926;
    --fondo: #1E294C;
    --linea: #F6CE98;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--fondo);
    padding: 0.875rem 1.875rem; /* 14px 30px */
    display: flex;
    justify-content: center;
    gap: 1.875rem; /* 30px */
    box-shadow: 0 0 0.625rem rgba(0,0,0,0.4); /* 10px */
    z-index: 1000;
    flex-wrap: wrap;
}

    .navbar a {
        color: var(--jaffa);
        font-weight: bold;
        text-decoration: none;
        font-size: clamp(0.9rem, 2vw, 1rem); /* Escala entre 0.9rem y 1rem según viewport */
        padding: clamp(0.375rem, 1vw, 0.625rem) clamp(0.75rem, 2vw, 1.125rem); /* 6-10px y 12-18px */
        border-radius: 0.5rem; /* 8px */
        display: flex;
        align-items: center;
        gap: 0.5rem; /* 8px */
        transition: all 0.3s ease;
    }

        .navbar a i {
            font-size: 1rem; /* 16px */
            color: var(--jaffa);
            transition: color 0.3s ease;
        }

        .navbar a:hover {
            background: var(--jaffa);
            color: white;
            box-shadow: 0 0 0.625rem rgba(237,115,63,0.6); /* 10px */
            transform: scale(1.05);
        }

            .navbar a:hover i {
                color: white;
            }

/* ===== MEDIA QUERY PARA NAVBAR PEQUEÑA ===== */
@media (max-width: 400px) {
    .navbar a {
        font-size: 0.8rem;
        padding: 0.375rem 0.625rem; /* 6px 10px */
    }
}

/* ================= BODY ================= */
body {
    font-family: Arial, sans-serif;
    margin-top: 5rem; /* 80px */
    padding: 0;
    background: var(--fondo);
    color: white;
}

/* ================= CARD ================= */
.card {
    width: 90%;
    margin: 1.875rem auto; /* 30px */
    min-height: 100vh;
    border: 0.1875rem solid var(--fondo); /* 3px */
    background: #ffffff;
    box-sizing: border-box;
    border-radius: 0.75rem; /* 12px */
    overflow: hidden;
    box-shadow: 0 0.25rem 0.9375rem rgba(0,0,0,0.5); /* 4px 15px */
}

/* ===== CARD HEADER ===== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5625rem; /* 25px */
    border-bottom: 0.1875rem solid var(--fondo); /* 3px */
    background: var(--fondo);
    flex-wrap: wrap;
}

.cliente-info {
    line-height: 1.6;
    flex: 1;
}

    .cliente-info p {
        margin: 0.5rem 0; /* 8px */
        font-size: 1rem; /* 16px */
    }

    .cliente-info strong {
        color: var(--jaffa);
    }

/* ===== LOGO ===== */
.logo {
    width: 11.25rem; /* 180px */
    height: 11.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--fondo);
    border-radius: 0.75rem; /* 12px */
    flex-shrink: 0;
}

    .logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 0.5rem; /* 8px */
        filter: drop-shadow(0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2)); /* 1px 2px */
        transition: transform 0.3s ease, filter 0.3s ease;
    }

        .logo img:hover {
            transform: scale(1.03);
            filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.25)); /* 2px 4px */
        }

/* ===== CARD BODY ===== */
.card-body {
    display: flex;
    padding: 1.5625rem; /* 25px */
    align-items: flex-start;
    background: #fff;
    color: #333;
    flex-wrap: wrap;
}

.imagen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-box {
    width: 6.25rem; /* 100px */
    height: 18.75rem; /* 300px */
    border: 0.1875rem solid var(--fondo); /* 3px */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #fff;
    border-radius: 0.625rem; /* 10px */
    flex-shrink: 0;
}

    .imagen-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ===== DETALLES ===== */
.detalles {
    margin: 0 1.875rem; /* 30px a los lados */
    flex: 1;
    color: #000;
    margin-top: 0.625rem; /* 10px */
    margin-bottom: 3.125rem; /* 50px */
    text-align: center;
    gap: 1.25rem; /* 20px */
}

    .detalles h3 {
        margin: 0 0 0.9375rem; /* 15px */
        font-size: 2rem;
        color: var(--tamarillo);
    }

    .detalles p {
        text-align: justify;
        margin: 0.375rem 0; /* 6px */
        font-size: 1rem; /* 16px */
        line-height: 1.5;
        color: #333;
    }

    .detalles strong {
        color: var(--jaffa);
    }

/* ===== CARD FOOTER Y BOTONES ===== */
.card-footer {
    text-align: center;
    padding: 1.25rem; /* 20px */
    background: #fff;
    border-top: 0.1875rem solid var(--fondo); /* 3px */
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5625rem; /* 12px 25px */
    font-size: 1rem; /* 16px */
    font-weight: bold;
    color: white;
    background: var(--fondo);
    border-radius: 0.5rem; /* 8px */
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .btn:hover {
        background: var(--tamarillo);
        transform: scale(1.05);
    }

/* ===== CARRUSEL ===== */
.imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem; /* 10px */
}

.carousel-container a {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

    .carousel-container a.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
    }

.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* o "contain" si prefieres */
    display: block;
    border-radius: 0.625rem; /* 10px */
    background: #fff;
}

.centro {
    text-align: justify;
}

.sepa {
    margin-top: 0.625rem; /* 10px */
    margin-bottom: 1.25rem; /* 20px */
}

/* ===== FLECHAS DE NAVEGACIÓN ===== */
.imagen .prev,
.imagen .next {
    background-color: rgba(30, 41, 76, 0.9);
    color: #fff;
    border: none;
    font-size: 2rem;
    line-height: 1;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    user-select: none;
}

    .imagen .prev:hover,
    .imagen .next:hover {
        background-color: var(--jaffa);
        transform: scale(1.08);
        align-self: center;
    }

/* ===== MEDIA QUERIES ===== */
@media (min-width: 600px) {
    .card-header {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1.25rem; /* 20px */
    }

    .detalles {
        margin-left: 1.25rem; /* 20px */
        margin-top: 0;
    }

    .card-body {
        flex-direction: row;
        gap: 1.25rem; /* 20px */
    }

    .imagen {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .navbar a {
        font-size: 0.8rem;
        padding: 0.375rem 0.625rem; /* 6px 10px */
    }

    .detalles h3 {
        font-size: 1.5rem;
    }

    .detalles p {
        font-size: 0.875rem;
    }

    .imagen-box {
        width: 5rem; /* 80px sería otra opción */
        height: 15rem; /* 240px */
    }

    .logo {
        width: 9rem; /* 144px */
        height: 9rem;
    }
}
