/* Variables de color y estilos generales */
:root {
    --gold: #d4af37;
    --dark-gold: #b38f2a;
    --dark-bg: #1a1a1a;
    --light-bg: #f9f8f3;
    --text-color: #333333;
    --white: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 1rem;
}

/* Header & Navegación */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--dark-bg);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    color: var(--gold);
    margin: 0;
    font-size: 1.8rem;
}

.logo span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #ccc;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--gold);
}

/* Hero */
.hero {
    background-color: var(--dark-bg);
    min-height: clamp(30rem, 70vh, 48rem);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem 5%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero-slides,
.hero-slide,
.hero-slide::after {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-slide::after {
    content: "";
    background: rgba(0, 0, 0, 0.48);
}

.hero h2 {
    color: var(--gold);
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
}

.hero-content {
    max-width: 70rem;
    position: relative;
    z-index: 1;
}

.hero-content p {
    overflow-wrap: anywhere;
}

.hero-controls {
    position: absolute;
    z-index: 2;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-arrow,
.hero-indicator {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.hero-arrow {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    font-size: 1rem;
}

.hero-indicators {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-indicator {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    border-radius: 50%;
}

.hero-indicator.is-active {
    background: var(--gold);
}

.hero-arrow:hover,
.hero-indicator:hover,
.hero-arrow:focus-visible,
.hero-indicator:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--gold);
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--dark-gold);
    color: var(--white);
}

/* Layout General */
.container {
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 8vw, 10%);
}

.subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

/* Cards de Filosofía */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.card-info {
    background: var(--white);
    padding: 2rem;
    border-top: 4px solid var(--gold);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.about-card {
    max-width: 900px;
    margin: 0 auto;
}

.about-card p + p {
    margin-top: 1rem;
}

.about-card h3 {
    margin: 1.75rem 0 0.75rem;
    text-align: left;
    color: var(--dark-gold);
}

/* Orishas */
.orishas-section {
    background-color: #f0eee6;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 8vw, 10%);
}

.orisha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
}

.orisha-card {
    background: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.orisha-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.tag {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 12px;
    background-color: #eee;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    max-width: 100%;
}

.contact-form textarea {
    resize: vertical;
}

/* Accesos rápidos de contacto flotantes */
.contact-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contact-float__link {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-float__link:hover,
.contact-float__link:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3);
}

.contact-float__link:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.contact-float__link svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: currentColor;
}

.contact-float__link--whatsapp {
    background: #25d366;
}

.contact-float__link--whatsapp svg,
.contact-float__link--instagram svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.contact-float__link--facebook {
    background: #1877f2;
}

.contact-float__link--instagram {
    background: #c13584;
}

.contact-float__link--instagram .instagram-dot {
    fill: currentColor;
    stroke: none;
}

.contact-float__link--phone {
    background: #333;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-controls {
        bottom: 0.75rem;
    }

    .card-info {
        padding: 1.5rem;
    }

    .contact-float {
        right: 0.75rem;
        bottom: 0.75rem;
        gap: 0.5rem;
    }

    .contact-float__link {
        width: 2.9rem;
        height: 2.9rem;
    }
}