/* ===================================
   ESTILOS PARA LA PÁGINA DE HISTORIA
   Diseño similar a ancon1.com/historia
   Usando Bootstrap 5 y CSS personalizado
   =================================== */

:root {
    --primary-blue: #2563eb;
    --dark-blue: #1e40af;
    --light-blue: #60a5fa;
    --ocean-blue: #0891b2;
    --sand-beige: #f5f1e8;
    --warm-white: #fefdfb;
    --dark-gray: #1f2937;
    --medium-gray: #6b7280;
    --light-gray: #f3f4f6;
    --accent-gold: #f59e0b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===================================
   RESET Y ESTILOS GENERALES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-gray);
    line-height: 1.7;
    background-color: var(--warm-white);
    overflow-x: hidden;
}

.historia-page {
    width: 100%;
    overflow-x: hidden;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-historia {
    position: relative;
    height: 75vh;
    min-height: 500px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--ocean-blue) 100%);
    background-image: 
        linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(8, 145, 178, 0.85) 100%),
        url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    opacity: 0.95;
}

/* Animaciones Hero */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--dark-blue);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--primary-blue) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */

.section-historia {
    background-color: var(--warm-white);
}

.content-card {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.text-content:last-child {
    margin-bottom: 0;
}

.text-content strong {
    color: var(--dark-blue);
    font-weight: 600;
}

/* ===================================
   IMAGE WRAPPERS
   =================================== */

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.08);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover::after {
    opacity: 1;
}

/* ===================================
   SECCIÓN ARQUEOLOGÍA
   =================================== */

.section-arqueologia {
    background: linear-gradient(135deg, var(--sand-beige) 0%, var(--light-gray) 100%);
    position: relative;
}

.arqueologia-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.arqueologia-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.highlight-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.highlight-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.highlight-text strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===================================
   SECCIÓN VIVIR LA HISTORIA
   =================================== */

.section-vivir {
    background-color: white;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.lead-text strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--light-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--ocean-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.5);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.8rem;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ===================================
   SECCIÓN CASAS
   =================================== */

.section-casas {
    background: linear-gradient(to bottom, var(--warm-white) 0%, var(--light-gray) 100%);
}

/* ===================================
   SECCIÓN TURISMO
   =================================== */

.section-turismo {
    background: white;
}

.turismo-card {
    background: linear-gradient(135deg, var(--sand-beige) 0%, white 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid var(--accent-gold);
}

.turismo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-width: 6px;
}

.turismo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.turismo-icon i {
    font-size: 1.8rem;
    color: white;
}

.turismo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.turismo-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* ===================================
   CONTACTO CARD
   =================================== */

.contacto-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--ocean-blue) 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    color: white;
}

.contacto-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.contacto-item {
    padding: 1rem;
}

.contacto-item i {
    font-size: 2rem;
    color: var(--accent-gold);
    display: block;
}

.contacto-item p {
    margin-bottom: 0.3rem;
    color: white;
}

.contacto-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.contacto-link:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--accent-gold);
    color: white;
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.social-btn i {
    font-size: 1.3rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 991px) {
    .hero-historia {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .arqueologia-card {
        padding: 2rem;
    }

    .turismo-card,
    .contacto-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-historia {
        height: 50vh;
        min-height: 350px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .content-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .text-content {
        font-size: 1rem;
        text-align: left;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }

    .arqueologia-card {
        padding: 1.5rem;
    }

    .highlight-title {
        font-size: 1.5rem;
    }

    .turismo-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contacto-card {
        padding: 2rem 1.5rem;
    }

    .contacto-title {
        font-size: 1.5rem;
    }

    .social-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .title-divider {
        width: 60px;
        height: 3px;
    }

    .content-card {
        padding: 1.2rem;
    }

    .arqueologia-card {
        padding: 1.2rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .turismo-icon {
        width: 60px;
        height: 60px;
    }

    .turismo-icon i {
        font-size: 1.5rem;
    }
}

/* ===================================
   UTILIDADES
   =================================== */

.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.rounded {
    border-radius: 12px !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark-blue);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Animaciones de carga */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Print styles */
@media print {
    .hero-historia,
    .social-links,
    .contacto-card {
        display: none;
    }
    
    .content-card,
    .feature-card,
    .turismo-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
