/* Fuentes personalizadas */
@font-face {
    font-family: 'Zerocalcare Blackletter';
    src: url('../fonts/Zerocalcare-Blackletter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Variables CSS */
:root {
    --primary-color: #c90039;
    --secondary-color: #222;
    --white-color: #fff;
    --gray-color: #f4f4f4;
    --dark-gray: #333;
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white-color);
    overflow-x: hidden;
    font-size: 16px;
    /* Montserrat más pequeña */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Zerocalcare Blackletter', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 3rem;
    /* Zerocalcare Blackletter más grande */
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--white-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo span {
    font-size: 1.1rem;
    color: var(--white-color);
    opacity: 0.8;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--white-color);
    font-size: 1.8rem;
    /* Más grande */
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    font-family: 'Zerocalcare Blackletter', Arial, sans-serif;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    background: url('/img/banner-creyentes.jpg') no-repeat center center/cover;
    padding: 0 1rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 7rem;
    /* Más grande */
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 3.5rem;
    /* Más grande */
    margin-bottom: 1.5rem;
    color: var(--white-color);
}

.hero p {
    font-size: 1.2rem;
    /* Más pequeño */
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Montserrat', Arial, sans-serif;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: .5rem 2rem;
    border-radius: 30px;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Zerocalcare Blackletter', Arial, sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(201, 0, 57, 0.3);
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.scroll-down span {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--white-color);
    font-family: 'Montserrat', Arial, sans-serif;
}

.scroll-down .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.scroll-down .mouse .wheel {
    width: 4px;
    height: 10px;
    background-color: var(--white-color);
    border-radius: 2px;
    margin-top: 10px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Lema Section */
.lema {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.lema::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://source.unsplash.com/random/1920x1080/?texture') no-repeat center center/cover;
    opacity: 0.05;
    z-index: 1;
}

.lema .container {
    position: relative;
    z-index: 2;
}

.lema h2 {
    font-size: 4.5rem;
    /* Más grande */
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.lema-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Solo 3 elementos */
    gap: 2.5rem;
}

.lema-item {
    padding: 2rem;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lema-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.lema-item:hover::before {
    transform: scaleX(1);
}

.lema-item:hover {
    transform: translateY(-15px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.lema-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.lema-item p {
    font-size: 1.1rem;
    /* Más pequeño */
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Principios Section */
.principios {
    padding: 6rem 0;
    background-color: var(--gray-color);
    text-align: center;
    position: relative;
}

.principios::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--white-color), transparent);
}

.principios h2 {
    font-size: 4.5rem;
    /* Más grande */
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.principios-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.principio-card {
    width: 280px;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.principio-front,
.principio-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.principio-front {
    background-color: var(--white-color);
    color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.principio-back {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: rotateY(180deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.principio-card:hover .principio-front {
    transform: rotateY(180deg);
}

.principio-card:hover .principio-back {
    transform: rotateY(0);
}

.principio-front i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.principio-front h3 {
    font-size: 2.5rem;
    /* Más grande */
}

.principio-back p {
    font-size: 1.1rem;
    /* Más pequeño */
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Ejes Temáticos Section */
.ejes {
    padding: 6rem 0;
    background-color: var(--white-color);
    text-align: center;
    position: relative;
}

.ejes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://source.unsplash.com/random/1920x1080/?pattern') no-repeat center center/cover;
    opacity: 0.03;
    z-index: 1;
}

.ejes .container {
    position: relative;
    z-index: 2;
}

.ejes h2 {
    font-size: 4.5rem;
    /* Más grande */
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.ejes-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
}

.eje-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(50px);
}

.eje-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.eje-content {
    background-color: var(--gray-color);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.eje-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
}

.eje-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.eje-content h3 {
    font-size: 3rem;
    /* Más grande */
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.eje-content p {
    font-size: 1.1rem;
    /* Más pequeño */
    color: var(--dark-gray);
    font-family: 'Montserrat', Arial, sans-serif;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.prev-btn,
.next-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.8rem;
    margin: 0 1.5rem;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Derechos Section */
.derechos {
    padding: 6rem 0;
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.derechos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://source.unsplash.com/random/1920x1080/?abstract') no-repeat center center/cover;
    opacity: 0.05;
    z-index: 1;
}

.derechos .container {
    position: relative;
    z-index: 2;
}

.derechos h2 {
    font-size: 4.5rem;
    /* Más grande */
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.derechos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.derecho-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.derecho-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 30px 30px;
    border-color: transparent transparent var(--primary-color) transparent;
    transition: var(--transition);
}

.derecho-item:hover {
    transform: translateY(-15px) scale(1.05);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.derecho-item:hover::after {
    border-width: 0 0 50px 50px;
}

.derecho-item .number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-family: 'Zerocalcare Blackletter', Arial, sans-serif;
}

.derecho-item p {
    font-size: 1.1rem;
    /* Más pequeño */
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Únete Section */
.unete {
    padding: 6rem 0;
    background-color: var(--gray-color);
    text-align: center;
    position: relative;
}

.unete::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://source.unsplash.com/random/1920x1080/?youth') no-repeat center center/cover;
    opacity: 0.05;
    z-index: 1;
}

.unete .container {
    position: relative;
    z-index: 2;
}

.unete h2 {
    font-size: 4.5rem;
    /* Más grande */
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.unete p {
    font-size: 1.1rem;
    /* Más pequeño */
    max-width: 800px;
    margin: 0 auto 3.5rem;
    color: var(--dark-gray);
    font-family: 'Montserrat', Arial, sans-serif;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    /* Más pequeño */
    color: var(--dark-gray);
    font-family: 'Montserrat', Arial, sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    /* Más pequeño */
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-group textarea {
    height: 180px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(201, 0, 57, 0.1);
    background-color: var(--white-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group button {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.8rem;
    /* Más grande */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: 'Zerocalcare Blackletter', Arial, sans-serif;
}

.form-group button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Mensaje de éxito */
.mensaje-exito {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
    font-family: 'Montserrat', Arial, sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 4rem 0 1.5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 1rem;
    /* Más pequeño */
    font-family: 'Montserrat', Arial, sans-serif;
    margin-left: 10px;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.3rem;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-8px);
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
    font-size: 1.6rem;
    /* Más grande */
    text-transform: uppercase;
    font-family: 'Zerocalcare Blackletter', Arial, sans-serif;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    /* Más pequeño */
    opacity: 0.7;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    font-size: 1.2rem;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 6rem;
    }

    .hero h2 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 5rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .principios-container {
        gap: 2rem;
    }

    .principio-card {
        width: 260px;
        height: 320px;
    }

    .lema h2,
    .principios h2,
    .ejes h2,
    .derechos h2,
    .unete h2 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }

    .lema-grid {
        grid-template-columns: 1fr;
    }

    .derechos-grid {
        grid-template-columns: 1fr;
    }

    .principios-container {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
    }

    .lema h2,
    .principios h2,
    .ejes h2,
    .derechos h2,
    .unete h2 {
        font-size: 3.5rem;
    }

    .eje-content h3 {
        font-size: 2.5rem;
    }

    .eje-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        width: 95%;
    }

    .principio-card {
        width: 100%;
        max-width: 300px;
    }

    .lema h2,
    .principios h2,
    .ejes h2,
    .derechos h2,
    .unete h2 {
        font-size: 3rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
    }
}