:root {
    --brand-blue: #0b3b8e;
    /* Color azul más oscuro para el anillo exterior */
    --brand-dark-blue: #002266; 
    --brand-red: #d66268;
    --brand-yellow: #f7d106;
    --dark: #0f172a;
    --gray: #64748b;
    --bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 20px;
    line-height: 1.5;
}

.container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

/* --- ANIMACIÓN DEL LOGO --- */
.logo-area-animated {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El contenedor que crea el fondo circular blanco */
.logo-center {
    position: relative;
    z-index: 2;
    width: 200px;
    height: 200px;
    background: white; /* Fondo blanco solicitado */
    border-radius: 50%; /* Forma circular */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(11, 59, 142, 0.1);
}

.logo-img {
    width: 90%;
    height: auto;
}

/* Estilos base para los anillos orbitales */
.orbit {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-color: transparent;
    background: transparent;
}

/* Anillo Amarillo */
.orbit-yellow {
    width: 220px;
    height: 220px;
    border-width: 4px;
    border-top-color: var(--brand-yellow);
    border-left-color: rgba(247, 209, 6, 0.3);
    animation: spin 3s linear infinite;
    z-index: 1;
}

/* Anillo Rojo */
.orbit-red {
    width: 250px;
    height: 250px;
    border-width: 4px;
    border-top-color: var(--brand-red);
    border-right-color: rgba(214, 98, 104, 0.3);
    animation: spinReverse 5s linear infinite;
    z-index: 0;
}

/* Anillo Azul */
.orbit-blue {
    width: 280px;
    height: 280px;
    border-width: 5px;
    border-top-color: var(--brand-dark-blue);
    border-left-color: rgba(11, 59, 142, 0.3);
    animation: spin 8s linear infinite;
    z-index: 0;
}

/* Animaciones de rotación */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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


/* --- RESTO DEL DISEÑO --- */
h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

h1 span {
    color: var(--brand-blue);
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray);
    font-weight: 300;
}

.hero strong {
    color: var(--brand-blue);
    font-weight: 600;
}

.line-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 60px auto;
    width: 200px;
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray);
    margin-bottom: 40px;
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    padding: 40px;
    border-radius: 32px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-blue);
    background: #fff;
    box-shadow: 0 30px 60px rgba(11, 59, 142, 0.1);
}

.city-tag {
    font-size: 0.7rem;
    background: var(--brand-yellow);
    color: var(--brand-blue);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.6rem;
    color: var(--brand-blue);
    margin-bottom: 15px;
}

.address {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 30px;
    min-height: 48px;
}

.btn-call {
    display: inline-block;
    background: var(--brand-blue);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(11, 59, 142, 0.2);
}

.btn-call:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(11, 59, 142, 0.3);
}

.mail-list a {
    display: block;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 6px;
    font-weight: 500;
    opacity: 0.8;
}

.mail-list a:hover {
    color: var(--brand-red);
    opacity: 1;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .card { padding: 30px; text-align: center; }
    .address { min-height: auto; }
    /* Ajuste del tamaño de la animación en móviles */
    .logo-area-animated { transform: scale(0.8); margin-bottom: 30px; }
}