/* Variables */
:root {
    --indigo: #3D348B;
    --almond: #FFE0B5;
    --azure: #A0EEC0;
    --charcoal: #1E1E1E;
    --coral: #FF6B6B;
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--charcoal);
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
}

section[id] {
    scroll-margin-top: 40px;
}

h1 {
    text-align: center;
}

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

.section-padding {
    padding: 160px 0 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--indigo);
    word-wrap: break-word;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--indigo);
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background: var(--indigo);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn:hover {
    background: var(--coral);
    color: #fff;
    transform: translateY(-3px);
}

.text-center {
    text-align: center;
}

/* Header styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

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

.logo svg {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    color: var(--indigo);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--coral);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--coral);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* CSS-only hamburger menu implementation */
.hamburger {
    position: relative;
    cursor: pointer;
    z-index: 1010;
    display: none; /* Hide by default, show on mobile */
}

/* Hide the checkbox but use it for state management */
.menu-toggle {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    z-index: 1015;
}

/* Create a CSS-only animated hamburger icon */
.hamburger-icon {
    z-index: 1015;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.hamburger-icon::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 3px;
    background-color: var(--indigo);
    transition: transform 0.3s ease;
    top: 12px;
}

.hamburger-icon::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 3px;
    background-color: var(--indigo);
    transition: transform 0.3s ease;
    bottom: 12px;
}

.hamburger-icon i {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--indigo);
    transition: opacity 0.3s ease;
}

/* Transform the icon into an X when menu is open */
.menu-toggle:checked + .hamburger-icon {
    background-color: rgba(255, 107, 107, 0.1); /* Coral with transparency */
}

.menu-toggle:checked + .hamburger-icon::before {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--coral);
}

.menu-toggle:checked + .hamburger-icon::after {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--coral);
}

.menu-toggle:checked + .hamburger-icon i {
    opacity: 0;
}

/* When checkbox is checked, show the nav menu */
.menu-toggle:checked ~ .nav-menu {
    right: 0;
}

/* CSS-only mobile menu close on link click - using the :target pseudo-class */
.nav-menu li a:focus {
    outline: none;
}

/* Hero section */
.hero {
    background-image: url('img/8w7YQ.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeIn 1s ease 0.6s;
    animation-fill-mode: both;
}

/* About section */
.about {
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services section */
.services {
    background-color: var(--almond);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--indigo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
}

/* Why Us section */
.why-us {
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    background: var(--azure);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Process section */
.process {
    background: var(--indigo);
    color: #fff;
}

.process h2 {
    color: #fff;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.process-step {
    flex: 0 0 calc(25% - 20px);
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--coral);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Form section */
.contact-form {
    background: #fff;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

form {
    display: grid;
    grid-gap: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 16px;
}

/* Custom styling for select and options */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
}

select option {
    background-color: var(--almond);
    color: var(--charcoal);
    padding: 15px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

/* Contact section */
.contact {
    background: var(--almond);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-bottom: 50px;
}

.contact-item {
    padding: 20px;
}

.contact-icon {
    font-size: 40px;
    color: var(--indigo);
    margin-bottom: 15px;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* Footer */
footer {
    background: var(--charcoal);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo svg {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    width: 50px;
    height: 2px;
    background: var(--coral);
    position: absolute;
    bottom: -10px;
    left: 0;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #ccc;
}

.footer-menu a:hover {
    color: var(--coral);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.cookie-btn {
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.accept-cookies {
    background: var(--indigo);
    color: #fff;
    border: none;
}

.decline-cookies {
    background: transparent;
    border: 1px solid #ddd;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive styles */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content,
    .services-grid,
    .features-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-step {
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 40px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .section-padding {
        padding: 130px 0 60px 0;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger {
        display: block;
    }
    
    /* Mobile nav menu styling */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
        margin-left: 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 10px 0;
        display: block;
        font-size: 18px;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .process-step {
        flex: 0 0 100%;
    }
    
    .form-container {
        padding: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu {
        text-align: center;
    }

    .contact-item {
        padding: 15px;
    }

    .map-container {
        height: 300px;
    }
}

@media screen and (max-width: 576px) {
    html, body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 15px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .contact-icon {
        font-size: 30px;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo svg {
        height: 40px;
    }
}

/* CSS-only FAQ Accordion */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--coral);
}

.faq-question {
    position: relative;
    padding: 20px;
    background: white;
    color: var(--indigo);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.faq-toggle {
    display: none;
}

.faq-toggle:checked ~ .faq-question {
    color: var(--coral);
}

.faq-content {
    max-height: 0;
    padding: 0 20px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* CSS-only accordion toggle using :checked pseudo-class */
.faq-toggle:checked ~ .faq-content {
    max-height: 500px;
    padding: 20px;
}

/* Custom arrow indicator */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    transition: transform 0.3s ease;
    color: var(--indigo);
}

.faq-toggle:checked ~ .faq-question::after {
    content: '−';
    color: var(--coral);
}

@media screen and (max-width: 576px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-question {
        padding: 15px;
        font-size: 16px;
    }
    
    .faq-content {
        padding: 0 15px;
    }
    
    .faq-toggle:checked ~ .faq-content {
        padding: 15px;
    }
}

/* Mobile menu items - target trick */
#inicio:target ~ header .menu-toggle:checked ~ .nav-menu,
#nosotros:target ~ header .menu-toggle:checked ~ .nav-menu,
#servicios:target ~ header .menu-toggle:checked ~ .nav-menu,
#por-que:target ~ header .menu-toggle:checked ~ .nav-menu,
#proceso:target ~ header .menu-toggle:checked ~ .nav-menu,
#faqs:target ~ header .menu-toggle:checked ~ .nav-menu,
#solicitar:target ~ header .menu-toggle:checked ~ .nav-menu,
#contacto:target ~ header .menu-toggle:checked ~ .nav-menu {
    right: -100%; /* Push the menu back off-screen when any section is targeted */
}

/* This will make the mobile menu more touch-friendly */
@media screen and (max-width: 768px) {
    .nav-menu a {
        padding: 10px 0;
        display: block;
    }
} 