/* ================================
   CSS RESET & BASE STYLES
   ================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #444444;
    background: linear-gradient(135deg, #177E89 0%, #69D2E7 50%, #7D5BA6 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */

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

.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    min-height: calc(100vh - 160px);
}

/* ================================
   HIDDEN ELEMENTS FOR INTERACTION
   ================================ */

.faq-toggle {
    display: none;
}

/* ================================
   COOKIE BANNER
   ================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(68, 68, 68, 0.98);
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
}

.cookie-text a {
    color: #FFC857;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cookie-btn.accept {
    background: #FFC857;
    color: #444444;
}

.cookie-btn.accept:hover {
    background: #e6b34f;
    transform: translateY(-2px);
}

.cookie-btn.reject {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn.reject:hover {
    background: white;
    color: #444444;
    transform: translateY(-2px);
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 32px;
    font-weight: bold;
    color: #177E89;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: #7D5BA6;
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    color: #444444;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFC857;
    transition: width 0.3s ease;
}

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

.nav-list a:hover {
    color: #177E89;
    transform: translateY(-2px);
}



/* ================================
   HERO SECTION
   ================================ */

.hero {
    padding: 80px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, rgba(23, 126, 137, 0.1) 0%, rgba(105, 210, 231, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 200, 87, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    color: #177E89;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: #7D5BA6;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FFC857 0%, #177E89 100%);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 200, 87, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 200, 87, 0.5);
}

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

/* ================================
   SECTION STYLES
   ================================ */

.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: rgba(105, 210, 231, 0.05);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #177E89;
    margin-bottom: 20px;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #7D5BA6;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   ABOUT SECTION
   ================================ */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #177E89;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* ================================
   SERVICES SECTION
   ================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 87, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFC857 0%, #177E89 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    position: relative;
    top: -30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-content h3 {
    font-size: 1.5rem;
    color: #177E89;
    margin-bottom: 15px;
    margin-top: -10px;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    flex: 1;
}

/* ================================
   PROCESS SECTION
   ================================ */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7D5BA6 0%, #177E89 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h4 {
    font-size: 1.3rem;
    color: #177E89;
    margin-bottom: 15px;
}

.process-step p {
    color: #666;
    line-height: 1.6;
}

/* ================================
   ADVANTAGES SECTION
   ================================ */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #69D2E7 0%, #7D5BA6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.advantage-content h4 {
    color: #177E89;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.advantage-content p {
    color: #666;
    line-height: 1.6;
}

/* ================================
   TESTIMONIALS SECTION
   ================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #FFC857;
    line-height: 1;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: bold;
    color: #177E89;
}

/* ================================
   CONTACT FORM SECTION
   ================================ */

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #177E89;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.form-group input,
.form-group select {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #177E89;
    box-shadow: 0 0 10px rgba(23, 126, 137, 0.2);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #177E89;
}

.checkbox-item label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.checkbox-item a {
    color: #177E89;
    text-decoration: none;
}

.checkbox-item a:hover {
    text-decoration: underline;
}

.submit-button {
    background: linear-gradient(135deg, #FFC857 0%, #177E89 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 200, 87, 0.3);
    justify-self: center;
    width: fit-content;
    padding-left: 60px;
    padding-right: 60px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 200, 87, 0.5);
}

/* ================================
   CONTACT INFO SECTION
   ================================ */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-info-item .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #69D2E7 0%, #7D5BA6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.contact-info-item h4 {
    color: #177E89;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-info-item p,
.contact-info-item a {
    color: #666;
    text-decoration: none;
    line-height: 1.6;
}

.contact-info-item a:hover {
    color: #177E89;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: #444444;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: #FFC857;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.8rem;
}

.footer-section h4 {
    font-size: 1.3rem;
}

.footer-section p {
    line-height: 1.7;
    color: #ccc;
}

.footer .contact-info p {
    margin-bottom: 15px;
}

.footer .contact-info a {
    color: #69D2E7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .contact-info a:hover {
    color: #FFC857;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFC857;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #666;
    color: #aaa;
}

/* ================================
   UNIFIED POLICY PAGES STYLES
   ================================ */

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 40px;
}

.policy-title {
    font-size: 2.5rem;
    color: #177E89;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    border-bottom: 3px solid #FFC857;
    padding-bottom: 20px;
}

.policy-section-block {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(105, 210, 231, 0.05);
    border-radius: 10px;
    border-left: 4px solid #177E89;
}

.policy-subsection {
    font-size: 1.5rem;
    color: #7D5BA6;
    margin-bottom: 20px;
    font-weight: 600;
}

.policy-section-block p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

.policy-list {
    margin: 20px 0;
    padding-left: 25px;
}

.policy-list li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #666;
}

.policy-list li strong {
    color: #177E89;
}

.policy-content .contact-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #69D2E7;
    margin: 30px 0;
}

.policy-content .contact-info h4 {
    color: #177E89;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.policy-content .contact-info p {
    margin-bottom: 10px;
    color: #555;
}

.policy-content .contact-info a {
    color: #177E89;
    text-decoration: none;
}

.policy-content .contact-info a:hover {
    text-decoration: underline;
}

/* ================================
   GRACIAS PAGE
   ================================ */

.gracias-container {
    text-align: center;
    max-width: 600px;
    margin: 100px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.gracias-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #FFC857 0%, #177E89 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.gracias-container h1 {
    font-size: 2.5rem;
    color: #177E89;
    margin-bottom: 20px;
}

.gracias-container p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.gracias-container .cta-button {
    margin-top: 20px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }

    /* Navigation */
    .nav {
        display: none;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Form */
    .contact-form-container {
        padding: 30px 20px;
        margin: 20px;
    }

    /* Contact Info */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Policy Pages */
    .policy-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .policy-title {
        font-size: 2rem;
    }
    
    .policy-section-block {
        padding: 20px;
    }

    /* Gracias Page */
    .gracias-container {
        margin: 40px 20px;
        padding: 40px 30px;
    }
    
    .gracias-container h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .service-card,
    .testimonial {
        padding: 30px 20px;
    }
    
    .contact-form-container {
        padding: 25px 15px;
    }
    
    .submit-button {
        padding: 15px 40px;
        font-size: 1rem;
    }
}
