/* Variables de colores */
:root {
    --primary-color: #002c3c; /* Color principal */
    --secondary-color: #99dff9; /* Color secundario */
    --accent-color: #2EC4B6; /* Color de acento */
    --text-color: #333333;
    --background-color: #FFFFFF;
    --muted-color: #f2f2f2;
    --border-color: #909090;
    --highlight-color: #FFC857; /* Color para resaltar */
    --danger-color: #FF6B6B; /* Color para acciones de peligro */
    --link-color: #1a73e8; /* Color para los enlaces */
    --card-background: #FFFFFF;
    --section-background: #FFFFFF;
    --header-background: #002c3c;
    --footer-background: #002c3c;
    --white: #FFFFFF;
}

/* Modo oscuro */
.dark-mode {
    --text-color: #FFFFFF;
    --background-color: #333333;
    --card-background: #444444;
    --section-background: #333333;
    --header-background: #002c3c;
    --footer-background: #002c3c;
    --link-color: #99dff9;
    --muted-color: #878787;
    --accent-color: #2EC4B6;
    --highlight-color: #FFC857;
    --danger-color: #FF6B6B;
    --white: #FFFFFF;
    --border-color: #909090;
}

/* Estilos globales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--header-background);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 200;
}

.nav-links a:hover {
    color: var(--highlight-color);
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    margin-left: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    margin-left: 20px;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: var(--header-background);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links.nav-active {
        display: flex;
    }
}

/* Cambio de logo según el modo */
body.light-mode .logo img {
    content: url('/assets/images/logo-claro.png');
}

body.dark-mode .logo img {
    content: url('/assets/images/logo-oscuro.png');
}

/* Tipografías */
h1, h2, h3 {
    font-family: 'HeroLight-Bold', sans-serif;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Enlaces */
a {
    color: var(--link-color);
}

a:hover {
    color: var(--highlight-color);
}

/* Secciones */
.section {
    padding: 80px 0; /* Aumentar espacio vertical */
    background-color: var(--section-background);
}

.section-light {
    background-color: var(--muted-color);
}

.section-dark {
    background-color: var(--background-color);
}

/* Sección Hero */
.hero {
    background-image: url('/assets/images/hero-background.jpg'); /* Añadir imagen de fondo */
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 44, 60, 0.7); /* Añadir superposición oscura */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 60px;
    color: var(--white);
}

.hero p {
    font-size: 28px;
    font-weight: 200;
    margin-bottom: 40px;
    color: var(--white);
}

.hero .cta-button {
    background-color: var(--highlight-color);
    color: var(--dark-gray);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
}

.hero .cta-button:hover {
    background-color: var(--danger-color);
    color: var(--white);
}

/* Sección de Título */
.section-title {
    text-align: left;
    padding-bottom: 20px;
}

.section-title p {
    font-size: 20px;
    font-weight: 200;
    margin-top: 10px;
}

/* Sección de Contenido */
.section-content {
    padding-top: 20px;
}

.section-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 18px;
}

/* Tarjetas */
.card {
    background-color: var(--card-background);
    border: 1px solid var(--muted-color);
    border-radius: 5px;
    padding: 30px; /* Aumentar padding */
    margin: 20px; /* Aumentar margen */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 20px;
}

.card p {
    font-size: 16px;
    font-weight: 200;
    margin-bottom: 20px;
}

.card a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 700;
}

.card a:hover {
    color: var(--danger-color);
}

/* Sección de Servicios */
.services .card {
    flex: 1 1 calc(33.3% - 40px);
    text-align: center;
}

.services .card i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.services .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Sección de Testimonios */
.testimonials .card {
    flex: 1 1 calc(45% - 40px);
    padding: 30px;
}

.testimonials .testimonial-text {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonials .testimonial-author {
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

/* Sección Llamado a la Acción */
.cta-section {
    background-color: var(--accent-color);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 30px;
}

.cta-section .cta-button {
    background-color: var(--highlight-color);
    color: var(--dark-gray);
}

.cta-section .cta-button:hover {
    background-color: var(--danger-color);
    color: var(--white);
}

/* Página de Contacto */
.contact-page form {
    display: flex;
    flex-direction: column;
}

.contact-page label {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-page input,
.contact-page textarea {
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    background-color: var(--card-background);
    color: var(--text-color);
}

.contact-page textarea {
    resize: vertical;
    height: 200px;
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.submit-button:hover {
    background-color: var(--highlight-color);
    color: var(--dark-gray);
}

/* Footer */
footer {
    background-color: var(--footer-background);
    color: var(--white);
    text-align: center;
    padding: 40px 0; /* Aumentar padding */
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content p {
    margin-top: 15px;
}

.social-media {
    margin-bottom: 20px;
}

.social-media a {
    color: var(--white);
    margin: 0 15px;
    font-size: 24px;
    text-decoration: none;
}

.social-media a:hover {
    color: var(--highlight-color);
}

/* Ajustes Responsivos */
@media (max-width: 992px) {
    .services .card,
    .testimonials .card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .services .card,
    .testimonials .card {
        flex: 1 1 100%;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 24px;
    }

    .contact-page input,
    .contact-page textarea {
        font-size: 14px;
    }

    .submit-button {
        font-size: 18px;
    }
}
