/* ========================================
   CRISTIANISIMO - ESTILOS MODERNOS
   ======================================== */

:root {
    --primary: #1a2940;
    --primary-light: #2c3e50;
    --primary-dark: #0d1b2a;
    --secondary: #c0392b;
    --secondary-light: #e74c3c;
    --gold: #f1c40f;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-light);
    color: var(--primary);
    overflow-x: hidden;
}

/* ========================================
   HERO SECTION - IMAGEN DE CABECERA
   ======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 366px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/000.jpg') center center / cover no-repeat;
    overflow: hidden;
}

/* Overlay oscuro para mejor legibilidad del texto */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ========================================
   SLIDER SECTION - CON ESQUINAS REDONDEADAS
   ======================================== */
.slider-section {
    padding: 4rem 0;
    background: var(--white);
}

/* Contenedor del carrusel con esquinas redondeadas */
.carousel-modern {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.carousel-image-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 500px;
}

.carousel-image-wrapper img {
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.carousel-modern:hover .carousel-image-wrapper img {
    transform: scale(1.03);
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    text-align: left;
    background: none;
}

.caption-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.caption-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}

/* Indicadores del carrusel */
.carousel-modern .carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-modern .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    transition: var(--transition);
}

.carousel-modern .carousel-indicators button.active {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.2);
}

/* Controles del carrusel */
.carousel-modern .carousel-control-prev,
.carousel-modern .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.carousel-modern:hover .carousel-control-prev,
.carousel-modern:hover .carousel-control-next {
    opacity: 1;
}

/* ========================================
   CARDS SECTION - REDONDEADAS CON SOMBRA
   ======================================== */
.cards-section {
    padding: 5rem 0;
    background: var(--gray-light);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

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

/* Cards modernas con esquinas redondeadas y sombra */
.card-modern {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.card-body {
    padding: 1.8rem;
    flex: 1;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.card-text {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.card-footer {
    padding: 1.2rem 1.8rem;
    background: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Botones outline para las cards */
.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.8rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(26, 41, 64, 0.2);
}

.btn-card i {
    transition: var(--transition);
}

.btn-card:hover i {
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .hero-section {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .carousel-image-wrapper img {
        height: 350px;
    }
    
    .caption-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-logo {
        max-height: 60px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .carousel-image-wrapper img {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
    }
    
    .caption-content h3 {
        font-size: 1.1rem;
    }
    
    .caption-content p {
        font-size: 0.85rem;
    }
    
    .carousel-modern .carousel-control-prev,
    .carousel-modern .carousel-control-next {
        opacity: 1;
        width: 35px;
        height: 35px;
    }
    
    .card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 200px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
    }
    
    .hero-logo {
        max-height: 50px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-image {
        height: 160px;
    }
    
    .btn-card {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-modern {
    animation: fadeInUp 0.6s ease forwards;
}

.card-modern:nth-child(2) { animation-delay: 0.1s; }
.card-modern:nth-child(3) { animation-delay: 0.2s; }

/* ========================================
   INFO GRID - 6 COLUMNAS DE INFORMACIÓN
   ======================================== */
.info-grid-section {
    padding: 2rem 0;
    background: var(--gray-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.info-card i {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-content strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    font-weight: 600;
}

.info-content span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.3;
}

/* Responsive info grid */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .info-card {
        padding: 1rem 0.8rem;
    }
    
    .info-card i {
        font-size: 1.4rem;
    }
    
    .info-content strong {
        font-size: 0.7rem;
    }
    
    .info-content span {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .info-card {
        padding: 0.8rem 0.5rem;
    }
}

/* ========================================
   BOTÓN ENVIAR NOTICIA EN EL HERO
   ======================================== */
.btn-enviar-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #E74C3C;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    height: 100%;
    min-height: 52px;
}

.btn-enviar-hero:hover {
    background: #c0392b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
    text-decoration: none;
}

.btn-enviar-hero i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-enviar-hero:hover i {
    transform: rotate(-5deg) scale(1.1);
}

/* Responsive - Tablets */
@media (max-width: 991px) {
    .btn-enviar-hero {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
        min-height: 48px;
    }
}

/* Responsive - Móviles */
@media (max-width: 767px) {
    .buscador-wrapper .row {
        flex-direction: column;
    }
    .buscador-wrapper .col-md-8,
    .buscador-wrapper .col-md-4 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .btn-enviar-hero {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        min-height: 44px;
    }
    .btn-enviar-hero i {
        font-size: 0.9rem;
    }
}

/* Responsive - Móviles pequeños */
@media (max-width: 576px) {
    .btn-enviar-hero {
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
        min-height: 38px;
    }
    .btn-enviar-hero i {
        font-size: 0.8rem;
    }
}