/* --- 1. CONTENEDOR PRINCIPAL --- */
.field--name-body:not(#footer *):not(.region-footer *) {
    position: relative;
    max-width: 1150px;
    margin: 30px auto;
    padding: 40px;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #f2e2e2;
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(87, 8, 8, 0.06);
    overflow: hidden;

    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 0px;
    align-items: start;
}

/* Fondo con orbes de luz y partículas flotantes */
.field--name-body:not(#footer *):not(.region-footer *)::before {
    content: "";
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(205, 0, 0, 0.05) 0 90px, transparent 90.5px),
        radial-gradient(circle at 85% 25%, rgba(168, 20, 20, 0.04) 0 120px, transparent 120.5px),
        radial-gradient(circle at 50% 85%, rgba(205, 0, 0, 0.04) 0 100px, transparent 100.5px),
        radial-gradient(circle at 70% 60%, rgba(205, 0, 0, 0.05) 0 50px, transparent 50.5px),
        radial-gradient(circle at 25% 75%, rgba(168, 20, 20, 0.04) 0 60px, transparent 60.5px),
        radial-gradient(circle at 30% 15%, rgba(205, 0, 0, 0.25) 0 4px, transparent 4.5px),
        radial-gradient(circle at 78% 35%, rgba(168, 20, 20, 0.22) 0 5px, transparent 5.5px),
        radial-gradient(circle at 90% 70%, rgba(205, 0, 0, 0.22) 0 4px, transparent 4.5px);
    background-repeat: no-repeat;
    animation: orbitaFondo 16s ease-in-out infinite alternate;
}

/* Aro punteado giratorio decorativo */
.field--name-body:not(#footer *):not(.region-footer *)::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(205, 0, 0, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: aroGiro 20s linear infinite;
}

.field--name-body:not(#footer *):not(.region-footer *) > * {
    position: relative;
    z-index: 2;
}

/* --- 2. TÍTULO PRINCIPAL ANIMADO --- */
h1.page-header {
    grid-column: 1 / -1;
    position: relative;
    color: #a81414;
    font-size: 34px;
    font-weight: 800;
    border: none;
    margin: 0 0 25px 0 !important;
    display: inline-block;
}

h1.page-header::after {
    content: "";
    display: block;
    width: 75px;
    height: 4px;
    background: linear-gradient(90deg, #cd0000, #a81414);
    margin-top: 8px;
    border-radius: 10px;
    animation: pulsoBarra 3s ease-in-out infinite alternate;
}

h1.page-header::before {
    position: absolute;
    right: -45px;
    top: -10px;
    color: #cd0000;
    font-size: 22px;
    animation: estrellaLatido 2.5s ease-in-out infinite;
}

/* --- 3. COLUMNA IZQUIERDA: MAPA DE GOOGLE --- */
.field--name-body:not(#footer *):not(.region-footer *) > .row {
    grid-column: 1 !important;
    grid-row: 2 / span 3 !important; 
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.field--name-body:not(#footer *):not(.region-footer *) > .row > .col-md-8 {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

.field--name-body:not(#footer *):not(.region-footer *) iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 380px;
    display: block;
    border: 1px solid #f2e2e2 !important;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(87, 8, 8, 0.06);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.field--name-body:not(#footer *):not(.region-footer *) iframe:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(87, 8, 8, 0.14);
}

/* --- 4. COLUMNA DERECHA: SECCIÓN TRANSPORTE --- */
.field--name-body:not(#footer *):not(.region-footer *) h3 {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    padding: 20px 24px 12px 70px;
    background: #ffffff;
    color: #570808;
    font-size: 22px;
    font-weight: 700;
    border-radius: 20px 20px 0 0;
    border-left: 5px solid #cd0000;
    box-shadow: 0 -2px 15px rgba(87, 8, 8, 0.03);
    position: relative;
    overflow: hidden;
}

.field--name-body:not(#footer *):not(.region-footer *) h3::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 14px;
    width: 38px;
    height: 38px;
    background-color: #cd0000;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 16c0 1.1.9 2 2 2h1v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h6v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h1c1.1 0 2-.9 2-2V6c0-3.5-3.58-4-8-4s-8 .5-8 4v10zm3.5 1c-.83 0-1.5-.67-1.5-1.5S6.67 14 7.5 14s1.5.67 1.5 1.5S8.33 17 7.5 17zm9 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm1.5-6H6V6h12v5z"/></svg>') no-repeat center / contain;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 16c0 1.1.9 2 2 2h1v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h6v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h1c1.1 0 2-.9 2-2V6c0-3.5-3.58-4-8-4s-8 .5-8 4v10zm3.5 1c-.83 0-1.5-.67-1.5-1.5S6.67 14 7.5 14s1.5.67 1.5 1.5S8.33 17 7.5 17zm9 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm1.5-6H6V6h12v5z"/></svg>') no-repeat center / contain;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.field--name-body:not(#footer *):not(.region-footer *) h3:hover::before {
    transform: scale(1.2) translateX(4px);
    background-color: #a81414;
}

.field--name-body:not(#footer *):not(.region-footer *) h3 + p {
    grid-column: 2 !important;
    grid-row: 3 !important;
    margin: 0 !important;
    padding: 10px 24px;
    background: #ffffff;
    color: #787878;
    font-size: 14px;
    line-height: 1.55;
    border-left: 5px solid #cd0000;
}

.field--name-body:not(#footer *):not(.region-footer *) h3 + p + p {
    grid-column: 2 !important;
    grid-row: 4 !important;
    margin: 0 !important;
    padding: 10px 24px 20px;
    background: #ffffff;
    color: #787878;
    font-size: 14px;
    line-height: 1.55;
    border-radius: 0 0 20px 20px;
    border-left: 5px solid #cd0000;
    box-shadow: 0 6px 20px rgba(87, 8, 8, 0.04);
}

.field--name-body:not(#footer *):not(.region-footer *) a {
    color: #cd0000 !important;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}

.field--name-body:not(#footer *):not(.region-footer *) a:hover {
    color: #a81414 !important;
    text-decoration: underline;
}

.field--name-body:not(#footer *):not(.region-footer *) strong {
    color: #570808;
}

/* --- 5. IMAGEN DE ACCESOS ABAJO --- */
.field--name-body:not(#footer *):not(.region-footer *) > img,
.field--name-body:not(#footer *):not(.region-footer *) .field--name-body-image img {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 30px auto 0 !important;
    background: #ffffff;
    padding: 10px;
    border: 2px solid #f2e2e2;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(87, 8, 8, 0.06);
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.field--name-body:not(#footer *):not(.region-footer *) > img:hover {
    transform: translateY(-6px);
    border-color: rgba(205, 0, 0, 0.3);
    box-shadow: 0 20px 40px rgba(87, 8, 8, 0.14);
}

/* --- 6. KEYFRAMES DE ANIMACIONES --- */
@keyframes orbitaFondo {
    0% { transform: translate3d(-20px, -15px, 0) scale(1) rotate(0deg); }
    50% { transform: translate3d(20px, 15px, 0) scale(1.03) rotate(1deg); }
    100% { transform: translate3d(-15px, 20px, 0) scale(1.01) rotate(-1deg); }
}

@keyframes aroGiro {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes estrellaLatido {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.4) rotate(25deg); opacity: 1; }
}

@keyframes pulsoBarra {
    0% { width: 75px; }
    100% { width: 110px; }
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 850px) {
    .field--name-body:not(#footer *):not(.region-footer *) {
        grid-template-columns: 1fr !important;
        padding: 25px 20px;
    }

    .field--name-body:not(#footer *):not(.region-footer *) > .row,
    .field--name-body:not(#footer *):not(.region-footer *) h3,
    .field--name-body:not(#footer *):not(.region-footer *) h3 + p,
    .field--name-body:not(#footer *):not(.region-footer *) h3 + p + p,
    .field--name-body:not(#footer *):not(.region-footer *) > img {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .field--name-body:not(#footer *):not(.region-footer *) iframe {
        height: 320px !important;
    }
}