/* ===== GLOBAL ===== */
body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    color: #1a2a44;
    line-height: 1.6em;
    background: url("fondo.jpg") no-repeat center center fixed;
    background-size: cover;
    backdrop-filter: blur(4px);
}

/* Bordes de la página */
html {
    background-color: #d9ebf8;
    /* azul claro del borde */
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, rgba(0,95,205,0.9), rgba(80,180,255,0.9));
    color: #fff;
    padding: 18px 0;
    border-bottom: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.header-wrap {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
}

.brand img {
    height: 170px;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    background: none;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.25));
}

/* ===== HERO ===== */
.hero {
    background: rgba(255,255,255,0.9);
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero .intro {
    max-width: 700px;
}

.hero h2 {
    color: #005fcc;
    margin-top: 0;
    font-size: 32px;
    font-weight: 800;
}

.hero p {
    color: #1b3555;
    font-size: 18px;
}

/* ===== SECTIONS ===== */
.sections {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.section-card {
    background: rgba(255,255,255,0.92);
    padding: 32px 26px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #5db3ff;
    text-align: center;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

/* ===== TEXTOS DE BANNERS ===== */
.section-card h3 {
    color: #005fcc;
    font-size: 23px;
    margin-bottom: 14px;
    font-weight: 800;
}

.section-card p {
    color: #2b4b6f;
    font-size: 17px;
    line-height: 1.7em;
    margin-bottom: 22px;
    flex-grow: 1;
}

/* ===== BOTONES ===== */
.cta-btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0084ff, #4ac1ff);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    align-self: center;
    margin-top: auto;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #4ac1ff, #0084ff);
}

/* ===== FOOTER ===== */
body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
}

footer {
    background: rgba(0,95,205,0.9);
    color: #fff;
    text-align: center;
    padding: 14px 0 18px;
    border-top: 3px solid #ffffff;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer p {
    margin: 4px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}


.realizado {
    color: rgb(173, 169, 169);
    font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sections {
        grid-template-columns: 1fr;
    }
    .hero {
        flex-direction: column;
        gap: 18px;
    }
    .brand img {
        height: 110px;
    }
}

/* === FORMULARIO MEJORADO === */
.form-cotizacion {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 60px;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    max-width: 520px;
    margin: 40px auto;
    backdrop-filter: blur(8px);
    border-top: 5px solid #0084ff;
}

.form-cotizacion h3 {
    color: #005fcc;
    text-align: center;
    margin-bottom: 28px;
    font-size: 24px;
    font-weight: 800;
}

.form-cotizacion .field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-cotizacion label {
    font-weight: 600;
    color: #1a2a44;
    margin-bottom: 6px;
    font-size: 15px;
}

.form-cotizacion input,
.form-cotizacion select,
textarea {
    border: 1px solid #ccd8e5;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    transition: all 0.25s ease;
    background: #f8fbff;
    width: 100%;
    box-sizing: border-box;
}

.form-cotizacion input:focus,
.form-cotizacion select:focus,
textarea:focus {
    border-color: #0084ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.25);
    background: #ffffff;
}

.form-cotizacion textarea[name="informacion"] {
    height: 100px;
    resize: none;
}

/* ===== BOTÓN FORMULARIO ===== */
.btn-submit {
    background: linear-gradient(135deg, #0084ff, #4ac1ff);
    color: #fff;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 12px;
    box-shadow: 0 6px 14px rgba(0, 132, 255, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #4ac1ff, #0084ff);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 132, 255, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ===== COOKIES POPUP ===== */
.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.cookie-box {
    background: white;
    padding: 40px 50px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    text-align: center;
    max-width: 480px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.cookie-box h3 {
    color: #005fcc;
    font-size: 22px;
    margin-bottom: 14px;
}

.cookie-box p {
    font-size: 15px;
    color: #1b3555;
    margin-bottom: 26px;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.cookie-buttons button {
    background: linear-gradient(135deg, #0084ff, #4ac1ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-buttons button:hover {
    transform: translateY(-2px);
}

.cookie-buttons #rejectCookies {
    background: #ccc;
    color: #333;
}

/* ===== PÁGINAS LEGALES ===== */
body.legal-page {
    background: #ffffff url("../fondo.jpg") no-repeat center center fixed;
    background-size: cover;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    color: #1a2a44;
    line-height: 1.6em;
}

.legal-container {
    background: rgba(255,255,255,0.95);
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    max-width: 900px;
    margin: 60px auto;
    text-align: left;
    overflow-wrap: break-word;
}

.legal-container h2 {
    color: #005fcc;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
}

#contenido p {
    margin-bottom: 14px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0084ff, #4ac1ff);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
