/* Main stylesheet for domain website
 * Colors:
 * - Primary: #005C62 (deep teal-graphite)
 * - Accent: #FF6B6B (electric coral)
 * - Background: #EDF2F4 (icy gray)
 * - Text: #2B2D42 (dark graphite)
 * - Additional: #A1EF6A (saturated lime)
 * - Icon color: #F5C518 (light gold)
 */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Ajuste de anclajes para posición más alta */
:target {
    scroll-margin-top: 100px; /* Espacio extra arriba de las secciones con anclajes */
    display: block;
}

:root {
    --color-primary: #005C62;
    --color-accent: #FF6B6B;
    --color-bg: #EDF2F4;
    --color-text: #2B2D42;
    --color-additional: #A1EF6A;
    --color-icon: #F5C518;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: var(--color-primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-accent {
    background: var(--color-accent);
}

.btn-accent:hover {
    background: var(--color-primary);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: lowercase;
    letter-spacing: -1px;
}

.desktop-menu ul {
    display: flex;
    list-style: none;
}

.desktop-menu li {
    margin-left: 1.5rem;
}

.desktop-menu a {
    font-weight: 500;
    position: relative;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.desktop-menu a:hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    padding: 1rem 0;
    background-color: white;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu a {
    display: block;
    font-weight: 500;
}

/* ===== MAIN CONTENT SECTIONS ===== */
main {
    padding-top: 80px; /* Header height */
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 20%;
    background-color: var(--color-accent);
}

/* ===== HERO SECTION ===== */
.hero {
    background-image: url('./img/Q9apqm.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center; /* Centra el texto horizontalmente */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px; /* Aumentado para mejor centrado */
    margin: 0 auto; /* Centra el contenedor */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos internos */
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.about-card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    background-color: var(--color-icon);
    border-radius: 50%;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-icon {
    width: 100%; /* Ocupa todo el ancho disponible */
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden; /* Para que la imagen respete el border-radius */
}

.service-icon img {
    width: 100%;
    height: 220px; /* Altura fija para todas las imágenes */
    object-fit: cover; /* Mantiene la proporción sin distorsionar */
    object-position: center; /* Centra la imagen */
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.benefit-item {
    display: flex;
    margin-bottom: 2rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin-right: 1.5rem;
    background-color: var(--color-icon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-text h3 {
    margin-bottom: 0.5rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--color-primary);
    position: absolute;
    left: -0.5rem;
    top: -1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primary);
}

.testimonial-company {
    font-size: 0.9rem;
    color: #666;
}

/* ===== WORKFLOW SECTION ===== */
.workflow {
    background-color: white;
}

.workflow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 2rem;
    right: 2rem;
    height: 4px;
    background-color: var(--color-additional);
    z-index: 1;
}

.workflow-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
    padding: 0 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.workflow-step:hover .step-number {
    transform: scale(1.1);
    background-color: var(--color-primary);
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form {
    background-color: var(--color-bg);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-additional));
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

/* ===== FAQ SECTION ===== */
.faq {
    background-color: white;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.faq-question {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.faq-question::before {
    content: "Q:";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.faq-answer {
    padding-left: 1.5rem;
    position: relative;
}

.faq-answer::before {
    content: "A:";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--color-accent);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 1rem;
    width: 24px;
    height: 24px;
    background-color: var(--color-icon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--color-primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.contact-list, .legal-list {
    list-style: none;
}

.contact-list li, .legal-list li {
    margin-bottom: 0.75rem;
}

.contact-list a, .legal-list a {
    color: rgba(255, 255, 255, 0.8);
}

.contact-list a:hover, .legal-list a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
}

.cookie-popup.active {
    display: block;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 1rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
    padding: 4rem 0;
    min-height: calc(100vh - 300px);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
}

.legal-container h1 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 1rem;
}

.legal-container h1::after {
    content: '⚖';
    display: block;
    font-size: 2rem;
    margin-top: 0.5rem;
    color: var(--color-icon);
}

.legal-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-container p, .legal-container ul, .legal-container ol {
    margin-bottom: 1.5rem;
}

.legal-container ul, .legal-container ol {
    padding-left: 2rem;
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
    padding: 6rem 0;
    text-align: center;
    min-height: calc(100vh - 300px);
}

.thank-you-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-additional);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .workflow-steps::before {
        left: 4rem;
        right: 4rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-grid, 
    .services-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .workflow-step {
        width: 33.333%;
        margin-bottom: 3rem;
    }
    
    .workflow-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-grid, 
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-step {
        width: 50%;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .workflow-step {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-container {
        padding: 2rem 1.5rem;
    }
} 