/* Importar fuentes elegantes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;500;600&display=swap');

/* Variables CSS para consistencia */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #8b4513;
    --accent-color: #d4af37;
    --text-primary: #2c3e50;
    --text-secondary: #5d6d7e;
    --bg-light: #fdfefe;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y estilos base más completos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Tipografía elegante */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Contenedor principal para la página de inicio */
.landing-page {
    background: var(--bg-light);
}

/* Hero Actions mejoradas */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Botones elegantes con animaciones mejoradas */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section completamente rediseñado */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(139, 69, 19, 0.85)),
                radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-cross {
    animation: float 6s ease-in-out infinite;
}

.floating-cross:nth-child(1) {
    animation-delay: 0s;
}

.floating-cross:nth-child(2) {
    animation-delay: 2s;
}

.floating-cross:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-icon {
    display: block;
    margin: 0 auto 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 40px rgba(212, 175, 55, 0.3);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Secciones principales */
main {
    background: var(--bg-light);
    position: relative;
}

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Features completamente rediseñadas */
.features {
    background: linear-gradient(to bottom, var(--bg-light), #f8f9fa);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.features-header {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.features-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--bg-gradient);
}

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

.card-icon {
    display: block;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Features CTA */
.features-cta {
    margin-top: 4rem;
    text-align: center;
}

.features-cta p {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 3rem auto 2rem;
    max-width: 600px;
    position: relative;
    text-align: center;
}

/* Trust Section */
.trust-section {
    background: #f8f9fa !important;
    padding: 4rem 2rem !important;
    text-align: center !important;
    position: relative;
}

.trust-section h2 {
    color: var(--primary-color) !important;
    margin-bottom: 2rem !important;
    font-size: 2.2rem;
}

.trust-section > div {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.trust-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.trust-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Espacio publicitario elegante */
.ad-space {
    margin: 4rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px dashed var(--accent-color);
    opacity: 0.8;
    max-width: 600px;
}

.ad-space h3 {
    color: var(--text-secondary) !important;
    margin-bottom: 0.5rem !important;
}

.ad-space p {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
    margin: 0;
}

/* Footer elegante */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    margin-top: 4rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
}

footer h4 {
    color: var(--accent-color) !important;
    margin-bottom: 1rem !important;
}

footer p {
    color: white;
    opacity: 0.9;
}

footer a {
    color: var(--accent-color);
    transition: var(--transition);
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

footer ul {
    list-style: none !important;
    opacity: 0.9 !important;
}

footer ul li {
    margin-bottom: 0.5rem !important;
}

footer ul li a {
    color: white !important;
    text-decoration: none !important;
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--accent-color) !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Animación de entrada para las cards */
.card {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Media queries responsivas mejoradas */
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .features {
        padding: 4rem 1.5rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .trust-section {
        padding: 3rem 1.5rem !important;
    }

    .trust-section > div > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        min-width: 180px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features h2 {
        font-size: 1.8rem;
    }

    .card h3 {
        font-size: 1.3rem;
    }

    .card p {
        font-size: 1rem;
    }

    .features-cta p {
        font-size: 1rem;
    }
}