html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
}

.hero-slide {
    background:
        linear-gradient(90deg, rgba(0, 42, 80, 0.92) 0%, rgba(0, 42, 80, 0.82) 45%, rgba(79, 79, 79, 0.55) 100%),
        url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.news-image-1 {
    background:
        linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .18)),
        url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=900&q=80') center/cover;
}

.news-image-2 {
    background:
        linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .18)),
        url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=900&q=80') center/cover;
}

.news-image-3 {
    background:
        linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .18)),
        url('https://images.unsplash.com/photo-1556740749-887f6717d7e4?auto=format&fit=crop&w=900&q=80') center/cover;
}

.gold-line::after {
    content: '';
    display: block;
    width: 84px;
    height: 3px;
    margin-top: 18px;
    background: linear-gradient(90deg, #C19A6B, transparent);
    border-radius: 999px;
}

.grid-detail {
    background-image:
        linear-gradient(rgba(193, 154, 107, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(193, 154, 107, .12) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* Logo */
.custom-logo {
    height: 72px;
    width: auto;
    max-width: 100%;
}

/* Reset menús WordPress */
.primary-menu,
.primary-menu ul,
.mobile-menu,
.mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Menú desktop */
.primary-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.primary-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu li::marker {
    content: '';
}

.primary-menu a {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #4F4F4F;
    text-decoration: none;
    transition: all 0.25s ease;
}

.primary-menu a:hover {
    color: #C19A6B;
}

/* Menú móvil */
.mobile-menu {
    display: flex;
    flex-direction: column;
}

.mobile-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #eee7dd;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu li::marker {
    content: '';
}

.mobile-menu a {
    display: block;
    padding: 0.95rem 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #4F4F4F;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-menu a:hover {
    color: #C19A6B;
}

/* Estilos de contenido interno */
.entry-content {
    color: #334155;
    font-size: 1.08rem;
    line-height: 1.95;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content p {
    margin-bottom: 1.4rem;
}

.entry-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.2;
    color: #4F4F4F;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.3;
    color: #4F4F4F;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1.2rem 0 1.4rem 1.2rem;
    padding-left: 1rem;
}

.entry-content li {
    margin-bottom: 0.6rem;
}

.entry-content strong {
    color: #1e293b;
    font-weight: 700;
}

.entry-content a {
    color: #C19A6B;
    text-decoration: none;
}

.entry-content a:hover {
    color: #002A50;
}

.entry-content img {
    border-radius: 24px;
    margin: 2rem 0;
    height: auto;
    max-width: 100%;
}

.entry-content blockquote {
    border-left: 4px solid #C19A6B;
    padding-left: 1rem;
    margin: 2rem 0;
    color: #475569;
    font-style: italic;
}

/* Video responsive automático */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 28px;
    margin: 2.5rem 0;
    box-shadow: 0 20px 50px rgba(0, 42, 80, 0.15);
    background: #000;
}

.video-wrapper iframe,
.video-wrapper embed,
.video-wrapper object {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Separación visual del contenido */
.entry-content hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 767px) {
    .custom-logo {
        height: 56px;
    }

    .primary-menu {
        display: none;
    }

    .entry-content {
        font-size: 1rem;
        line-height: 1.85;
    }

    .entry-content h2 {
        font-size: 1.75rem;
    }

    .entry-content h3 {
        font-size: 1.35rem;
    }

    .video-wrapper {
        border-radius: 22px;
        margin: 2rem 0;
    }
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    margin: 0 4px;
    border: 1px solid #d6d3d1;
    border-radius: 999px;
    color: #4F4F4F;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    background: #fff;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #C19A6B;
    border-color: #C19A6B;
    color: #fff;
}

/* Contact Form 7 */
.wpcf7 {
    width: 100%;
}

.wpcf7 form {
    width: 100%;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.wpcf7 label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    outline: none;
    transition: all 0.25s ease;
    font-size: 1rem;
    color: #334155;
    background: #fff;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    border-color: #C19A6B;
    box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.12);
}

.wpcf7 textarea {
    min-height: 180px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #C19A6B;
    color: #fff;
    padding: 1rem 1.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: #002A50;
}

.wpcf7-spinner {
    margin-top: 12px;
}

.wpcf7-not-valid-tip {
    margin-top: 0.45rem;
    font-size: 0.9rem;
}

.wpcf7-response-output {
    margin: 1.25rem 0 0 !important;
    border-radius: 1rem;
    padding: 0.9rem 1rem !important;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* efecto pulsante sutil */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.5;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* móvil */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}