/* --- Dracula Color Palette --- */
:root {
    --color-background: #282a36; /* Main Background */
    --color-primary: #bd93f9;    /* Purple (for buttons and links) */
    --color-secondary: #8be9fd;  /* Cyan (for highlights and titles) */
    --color-accent: #ff79c6;     /* Pink (for special accents) */
    --color-text: #f8f8f2;       /* Main Text Color */
    --font-family: 'Poppins', sans-serif;
}

/* --- Estilos Generales --- */
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Estilos para la tarjeta de servicio detallada */
.detailed-service-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
    overflow: hidden; /* Para que la imagen respete los bordes redondeados */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detailed-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.card-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 24px;
    color: #111827;
    margin-top: 0;
}

.card-content h4 {
    font-size: 18px;
    color: #111827;
    margin-top: 30px;
    border-bottom: 2px solid #EEF2FF;
    padding-bottom: 10px;
}

.card-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

/* Estilos para la lista de puntos clave con iconos */
.key-features-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.key-features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.key-features-list img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px; /* Bordes redondeados para los iconos */
    margin-right: 15px;
    flex-shrink: 0;
}

.key-features-list .feature-text {
    font-size: 15px;
    line-height: 1.6;
}

.key-features-list .feature-text strong {
    color: #111827;
}
/* --- Encabezado y Navegación --- */
.main-header {
    background-color: rgba(45, 45, 60, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px; /* Ajusta el tamaño del logo según necesites */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav a:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
}

/* --- Botón de Hamburguesa (Móvil) --- */
.hamburger-menu {
    display: none; /* Oculto en escritorio */
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001; /* Asegura que esté sobre otros elementos */
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Animación del botón a 'X' cuando está activo */
.hamburger-menu.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger-menu.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(0);
}

.hamburger-menu.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(90deg);
}

.main-nav a.active {
    background-color: var(--color-primary);
    color: var(--color-background);
    font-weight: bold;
}

/* --- Sección Principal (Hero) --- */
.hero-section {
    background-image: linear-gradient(rgba(45, 45, 60, 0.7), rgba(45, 45, 60, 0.7)), url('portada.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-section h2 {
    font-size: 1.5em;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* --- Sección de Introducción --- */
.intro-section {
    padding: 60px 0;
}

.intro-section p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.features-list li {
    font-size: 1.1em;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-left: 5px solid var(--color-secondary);
    border-radius: 5px;
}

/* --- Pie de Página --- */
.main-footer {
    background-color: #1e1e28;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #444;
}/* --- Estilos para la Página de Contacto --- */
.contact-section {
    padding: 60px 0;
}

.contact-section h1 {
    text-align: center;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.contact-section p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(0,0,0,0.2);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #444;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #333;
    color: var(--color-text);
    font-size: 16px;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #7a5fcf; /* Un tono más claro de tu color primario */
}

/* --- Estilos para los mensajes de envío --- */
.mensaje-exito {
    background-color: #28a745;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.mensaje-error {
    background-color: #dc3545;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}/* --- Estilos para la Página "Nosotros" --- */
.about-hero-section {
    background-color: #1e1e28;
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid var(--color-secondary);
}

.about-hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 0.5em;
    color: var(--color-secondary);
}

.about-content-section {
    padding: 60px 0;
}

.about-content-section h2 {
    font-size: 2.2em;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.about-content-section h3 {
    font-size: 1.5em;
    color: var(--color-secondary);
    margin-top: 25px;
    margin-bottom: 15px;
}

.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--color-primary), rgba(0, 0, 0, 0));
    margin: 60px 0;
}

.pillars-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.pillar {
    background-color: rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
    flex: 1;
}

.pillar h3 {
    margin-top: 0;
}

.cta-section {
    text-align: center;
    background-color: #1e1e28;
    padding: 50px 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-cta {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-3px);
}

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

.btn-cta.secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

/* --- MEDIA QUERIES PARA RESPONSIVIDAD --- */

/* Para tabletas y dispositivos más pequeños (hasta 768px) */
@media (max-width: 768px) {
    /* --- Navegación Móvil --- */
    .main-header .container {
        justify-content: space-between; /* Logo a la izquierda, hamburguesa a la derecha */
    }

    .hamburger-menu {
        display: block; /* Muestra el botón de hamburguesa */
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #1e1e28;
        padding-top: 100px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    .main-nav.is-active {
        right: 0; /* Muestra el menú */
    }
    
    .main-nav ul {
        flex-direction: column; /* Apila los elementos del menú */
        align-items: center;
        gap: 20px;
    }
    /* --- Tipografía --- */
    .hero-section h1, .about-hero-section h1 {
        font-size: 2.2em; /* Reduce el tamaño de los títulos principales */
    }

    .hero-section h2 {
        font-size: 1.2em;
    }

    .about-content-section h2 {
        font-size: 1.8em;
    }

    /* --- Contenido en columnas --- */
    .pillars-container {
        flex-direction: column; /* Apila los pilares */
    }

    .cta-buttons {
        flex-direction: column; /* Apila los botones de acción */
        align-items: center;
    }

    .btn-cta {
        width: 100%;
        max-width: 320px; /* Evita que los botones sean demasiado anchos */
        text-align: center;
    }

    .contact-form {
        padding: 20px; /* Reduce el padding en el formulario */
    }
}