/* ============================================
   PARROQUIA SAN ISIDRO LABRADOR
   Hoja de estilos principal
   ============================================ */

/* Reset y variables */
:root {
    --color-primary: #1a3a5c;       /* Azul profundo eclesial */
    --color-primary-dark: #0f2540;
    --color-primary-light: #2d5a8a;
    --color-gold: #c9a961;          /* Dorado */
    --color-gold-light: #e0c98a;
    --color-gold-dark: #a8893f;
    --color-cream: #faf6ee;         /* Crema cálido */
    --color-beige: #ede4d0;
    --color-text: #2c2c2c;
    --color-text-light: #5a5a5a;
    --color-white: #ffffff;
    --color-shadow: rgba(26, 58, 92, 0.15);
    --color-overlay: rgba(15, 37, 64, 0.7);

    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', sans-serif;

    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 6px 20px rgba(26, 58, 92, 0.18);
    --shadow-lg: 0 15px 40px rgba(26, 58, 92, 0.25);

    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TOP BAR (info rápida)
   ============================================ */
.topbar {
    background: var(--color-primary-dark);
    color: var(--color-cream);
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.topbar-info i, .topbar-social i {
    color: var(--color-gold);
}

.topbar-social {
    display: flex;
    gap: 16px;
}

.topbar-social a {
    color: var(--color-cream);
    transition: color var(--transition);
}

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

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */
.header {
    position: sticky;
    top: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.nav-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
    box-shadow: var(--shadow-sm);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 700;
    margin: 0;
}

.nav-logo-subtitle {
    font-size: 0.7rem;
    color: var(--color-gold-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    display: block;
    padding: 10px 16px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 4px;
    position: relative;
    transition: all var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    background: var(--color-primary-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-iglesia.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Video de fondo del hero */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,37,64,0.85) 0%, rgba(26,58,92,0.7) 50%, rgba(15,37,64,0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 60px 24px;
}

.hero-pretitle {
    display: inline-block;
    font-family: var(--font-sans);
    color: var(--color-gold);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: 2px;
    line-height: 1.05;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.4);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-divider {
    width: 120px;
    height: 2px;
    background: var(--color-gold);
    margin: 28px auto;
    position: relative;
    animation: expand 1.2s ease 0.5s backwards;
}

.hero-divider::before,
.hero-divider::after {
    content: '✦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    font-size: 1rem;
}

.hero-divider::before { left: -28px; }
.hero-divider::after { right: -28px; }

@keyframes expand {
    from { width: 0; opacity: 0; }
    to { width: 120px; opacity: 1; }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 36px;
    color: var(--color-cream);
    font-weight: 300;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-cream);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator::after {
    content: '';
    display: block;
    margin: 8px auto 0;
    width: 2px;
    height: 30px;
    background: var(--color-gold);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    border-color: var(--color-gold);
}

.btn-primary:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-dark {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-dark:hover {
    background: var(--color-primary-dark);
    color: var(--color-gold-light);
    transform: translateY(-3px);
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-light {
    background: var(--color-cream);
}

.section-beige {
    background: var(--color-beige);
}

.section-dark {
    background: var(--color-primary);
    color: var(--color-cream);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-pretitle {
    display: inline-block;
    font-family: var(--font-sans);
    color: var(--color-gold-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-dark .section-pretitle {
    color: var(--color-gold-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: var(--color-beige);
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 16px auto 28px;
    border-radius: 2px;
}

/* ============================================
   HORARIOS / GRID DE TARJETAS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-align: center;
    border-top: 4px solid var(--color-gold);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    transition: height var(--transition);
    z-index: 0;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    height: 100%;
}

.card:hover .card-icon,
.card:hover .card-title,
.card:hover .card-text,
.card:hover .card-time {
    color: var(--color-white);
}

.card:hover .card-icon {
    color: var(--color-gold-light);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: color var(--transition);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    transition: color var(--transition);
}

.card-text {
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
    transition: color var(--transition);
    line-height: 1.7;
}

.card-time {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 12px 0;
    position: relative;
    z-index: 1;
    transition: color var(--transition);
    font-weight: 600;
}

/* ============================================
   SOBRE NOSOTROS / TWO COLUMNS
   ============================================ */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.two-cols-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    aspect-ratio: 4/3;
}

.two-cols-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.two-cols-img:hover img {
    transform: scale(1.05);
}

.two-cols-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--color-gold);
    z-index: 2;
    pointer-events: none;
    transition: all var(--transition);
}

.two-cols-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.two-cols-text .lead {
    font-size: 1.15rem;
    color: var(--color-gold-dark);
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.two-cols-text p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* ============================================
   TIMELINE (HISTORIA)
   ============================================ */
.timeline {
    position: relative;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(to bottom, var(--color-gold), var(--color-primary-light), var(--color-gold));
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 50px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 40px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 4px solid var(--color-cream);
    box-shadow: 0 0 0 3px var(--color-gold);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -11px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -11px;
}

.timeline-content {
    background: var(--color-white);
    padding: 24px 28px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-gold-light);
    padding: 4px 14px;
    border-radius: 20px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.timeline-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   COMUNIDADES (CHAPELS GRID)
   ============================================ */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 32px;
}

.community-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.community-card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.community-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.community-card:hover .community-card-img img {
    transform: scale(1.08);
}

.community-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15,37,64,0.6));
}

.community-card-body {
    padding: 28px;
    position: relative;
}

.community-card-tag {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.community-card-title {
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.community-card-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.community-card-link {
    color: var(--color-gold-dark);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition);
}

.community-card-link:hover {
    gap: 14px;
}

/* ============================================
   PÁRROCOS / SUCESIÓN PASTORAL
   ============================================ */
.priests-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.priest-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border-bottom: 4px solid var(--color-gold);
}

.priest-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.priest-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    border: 3px solid var(--color-gold);
}

.priest-name {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.priest-years {
    color: var(--color-gold-dark);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-serif);
}

.priest-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.priest-current {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
}

.priest-current .priest-name { color: var(--color-white); }
.priest-current .priest-years { color: var(--color-gold-light); }
.priest-current .priest-note { color: var(--color-beige); }
.priest-current .priest-avatar {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    border-color: var(--color-white);
}

/* ============================================
   QUOTE / CITA
   ============================================ */
.quote-section {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-cream);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif);
    font-size: 20rem;
    color: var(--color-gold);
    opacity: 0.1;
    line-height: 1;
}

.quote-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.4;
    margin-bottom: 24px;
    color: var(--color-white);
}

.quote-author {
    color: var(--color-gold);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ============================================
   PAGE HEADER (subpáginas)
   ============================================ */
.page-header {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,37,64,0.85), rgba(15,37,64,0.95));
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--color-white);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.page-header-pretitle {
    font-family: var(--font-sans);
    color: var(--color-gold);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.page-header-breadcrumb {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--color-beige);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-header-breadcrumb a {
    color: var(--color-gold-light);
}

.page-header-breadcrumb span {
    margin: 0 10px;
}

/* ============================================
   PROSE (texto largo)
   ============================================ */
.prose {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.85;
    color: var(--color-text);
    font-size: 1.05rem;
}

.prose p {
    margin-bottom: 22px;
}

.prose p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--color-gold-dark);
    float: left;
    line-height: 0.9;
    padding: 4px 12px 0 0;
}

.prose h3 {
    font-size: 1.8rem;
    margin: 36px 0 16px;
    color: var(--color-primary);
}

.prose ul {
    margin-bottom: 22px;
    padding-left: 0;
    list-style: none;
}

.prose ul li {
    padding-left: 28px;
    margin-bottom: 10px;
    position: relative;
}

.prose ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: 0.9rem;
}

/* ============================================
   FEATURE BAR (caja resaltada)
   ============================================ */
.feature-bar {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-primary-dark);
    padding: 50px 0;
    text-align: center;
}

.feature-bar h3 {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.feature-bar p {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    opacity: 0.85;
}

/* ============================================
   CONTACTO / FORM
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 24px;
    font-size: 1.6rem;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-detail strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.contact-detail span, .contact-detail a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-cream);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
}

.footer-logo h3 {
    color: var(--color-white);
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.2;
}

.footer-logo span {
    color: var(--color-gold);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.footer-brand p {
    color: var(--color-beige);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    color: var(--color-gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: var(--color-cream);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer ul li a:hover {
    color: var(--color-gold-light);
    padding-left: 6px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    color: var(--color-beige);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--color-gold-light);
}

/* ============================================
   ANIMACIONES SCROLL
   ============================================ */
.js .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.js .fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.js .fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   BOTÓN VOLVER ARRIBA
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    border: none;
    font-size: 1.1rem;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    transform: translateY(-4px);
}

/* ============================================
   WHATSAPP FLOATING
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .two-cols,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform var(--transition);
        gap: 0;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        padding: 14px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-beige);
    }

    .timeline::before { left: 20px; }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        padding-right: 16px;
        text-align: left !important;
    }

    .timeline-item .timeline-dot {
        left: 9px !important;
        right: auto !important;
    }

    .topbar-info {
        font-size: 0.75rem;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content { padding: 40px 16px; }
    .container { padding: 0 16px; }
    .contact-info { padding: 28px 20px; }
    .scroll-top, .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 20px;
    }
    .scroll-top { right: 20px; }
    .whatsapp-float { left: 20px; font-size: 1.4rem; }
}

/* Selection */
::selection {
    background: var(--color-gold);
    color: var(--color-primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-dark); }

/* ============================================
   PARALLAX SECTION (foto fija fullscreen)
   ============================================ */
.parallax {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,37,64,0.5) 0%, rgba(15,37,64,0.75) 100%);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.parallax-content .section-pretitle {
    color: var(--color-gold-light);
}

.parallax-content h2 {
    color: var(--color-white);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: 18px;
    text-shadow: 2px 4px 16px rgba(0,0,0,0.4);
}

.parallax-content p {
    color: var(--color-cream);
    font-size: 1.15rem;
    font-family: var(--font-serif);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        height: 55vh;
        min-height: 400px;
    }
}

/* ============================================
   GALERÍA MOSAICO (masonry-like)
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(15,37,64,0.7));
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 18px;
    color: var(--color-white);
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gold-light);
    margin-bottom: 2px;
}

.gallery-caption-text {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-cream);
}

/* Tamaños especiales en grid */
.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item-large {
    grid-row: span 2;
    grid-column: span 2;
}

@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 10px; }
    .gallery-item-large { grid-column: span 2; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gallery-item-tall,
    .gallery-item-wide,
    .gallery-item-large { grid-row: span 1; grid-column: span 1; }
}

/* ============================================
   LIGHTBOX (modal galería)
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform var(--transition);
}

.lightbox-close:hover { transform: rotate(90deg); color: var(--color-gold); }

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-cream);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    text-align: center;
}

/* ============================================
   SECCIÓN CON IMAGEN DESTACADA (foto vertical lateral)
   ============================================ */
.feature-photo {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
    align-items: stretch;
}

.feature-photo-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 500px;
    position: relative;
}

.feature-photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.feature-photo-img:hover img { transform: scale(1.04); }

.feature-photo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 992px) {
    .feature-photo { grid-template-columns: 1fr; gap: 40px; }
    .feature-photo-img { min-height: 400px; }
}

/* ============================================
   STATS BAND (números/marcas)
   ============================================ */
.stats-band {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    padding: 60px 0;
    color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 10px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--color-cream);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-number { font-size: 2.6rem; }
}

/* Hero con foto vertical (mobile-friendly) */
.hero-with-tagline {
    position: relative;
}

.hero-bg-signature {
    position: absolute;
    bottom: 14px;
    right: 24px;
    color: var(--color-gold-light);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
    z-index: 3;
    font-family: var(--font-sans);
}

/* ============================================
   AJUSTES PARA IMÁGENES PORTRAIT
   ============================================ */

/* Two-cols: variante para imágenes portrait */
.two-cols-img--portrait {
    aspect-ratio: 3/4;
}

/* Community cards: mostrar parte superior de imágenes (edificios, personas) */
.community-card-img img {
    object-position: center 30%;
}

/* Utilidad: posicionar imagen desde arriba */
.img-top { object-position: center top !important; }
.img-center { object-position: center center !important; }

/* ============================================
   VIDA SACRAMENTAL
   ============================================ */
.sacramento-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--color-gold);
    transition: all var(--transition);
    margin-bottom: 28px;
}

.sacramento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sacramento-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sacramento-card h3 i {
    color: var(--color-gold);
    font-size: 1.3rem;
}

.sacramento-card .sacramento-info {
    color: var(--color-gold-dark);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.sacramento-card ul {
    list-style: none;
    padding: 0;
}

.sacramento-card ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-beige);
    font-size: 0.95rem;
    line-height: 1.6;
}

.sacramento-card ul li:last-child {
    border-bottom: none;
}

.sacramento-card ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: 0.75rem;
    top: 10px;
}

.sacramento-card .sacramento-nota {
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--color-beige);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
}

/* Anular cualquier itálica o cursiva en todo el sitio */
em, i:not([class*="fa-"]):not([class*="fab"]):not([class*="fas"]):not([class*="far"]),
blockquote, q, cite, address, dfn, var {
    font-style: normal !important;
}

* {
    font-style: normal;
}

/* Tabla de aranceles */
.aranceles-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.aranceles-table thead {
    background: var(--color-primary);
    color: var(--color-white);
}

.aranceles-table th {
    padding: 14px 20px;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 1px;
}

.aranceles-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-beige);
    font-size: 0.95rem;
    color: var(--color-text);
}

.aranceles-table tbody tr:last-child td {
    border-bottom: none;
}

.aranceles-table tbody tr:hover {
    background: var(--color-cream);
}

.aranceles-table .precio {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Caja de datos bancarios */
.datos-bancarios {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin: 28px 0;
}

.datos-bancarios h3 {
    color: var(--color-white);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.datos-bancarios .dato-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.datos-bancarios .dato-item:last-child {
    border-bottom: none;
}

.datos-bancarios .dato-label {
    color: var(--color-gold-light);
    font-weight: 600;
    min-width: 100px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.datos-bancarios .dato-valor {
    color: var(--color-white);
    font-size: 1.05rem;
}

/* ============================================
   NAV AJUSTADO PARA MÁS ITEMS
   ============================================ */
@media (min-width: 769px) {
    .nav-links a {
        padding: 8px 11px;
        font-size: 0.85rem;
    }
}
