* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f0f4f8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    text-align: center;
}

.logo-principal {
    max-width: 668px;
    width: 100%;
    height: auto;
    margin-bottom: 32px;
    display: block;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0 0 12px;
    color: #1a2a3a;
    line-height: 1.2;
}

p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #6b7c8d;
    margin: 0 0 10px;
    line-height: 1.6;
    max-width: 520px;
}

.loader {
    border: 4px solid #dce3ea;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    animation: spin 1.5s linear infinite;
    margin: 28px auto;
}

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

.msg-final {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 500;
    color: #4a5a6a;
    margin-bottom: 20px;
}

/* Tarjetas en fila (desktop) */
.contacto {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 40px;
}

.contacto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #dce3ea;
    border-radius: 16px;
    padding: 28px 16px;
    text-decoration: none;
    color: #1a2a3a;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: center;
}

.contacto-item:hover {
    background: #eaf4fb;
    border-color: #3498db;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.15);
    transform: translateY(-3px);
}

.contacto-item.whatsapp:hover {
    background: #eafaf1;
    border-color: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
}

.contacto-icon {
    font-size: 2rem;
}

.contacto-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9aacbc;
    font-weight: 700;
}

.contacto-valor {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2a3a;
    word-break: break-word;
}

/* Footer */
.footer {
    width: 100%;
    border-top: 2px solid #dce3ea;
    padding-top: 24px;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.diseno-container, .soporte-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-diseno {
    height: 28px;
    width: auto;
}

.soporte {
    font-family: 'Cooper Black', serif;
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0;
    color: #1a2a3a;
    text-transform: uppercase;
}

/* Tablet / móvil: tarjetas en columna */
@media (max-width: 680px) {
    .contacto {
        grid-template-columns: 1fr;
    }

    .contacto-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 16px 20px;
        gap: 14px;
    }

    .contacto-icon {
        font-size: 1.6rem;
        flex-shrink: 0;
    }

    .logo-principal {
        max-width: 240px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 32px 14px 24px;
    }
    h1 {
        font-size: 1.6rem;
    }
}
