/* 
   Main CSS File
   Color Palette:
   - Main: #00b3b3 (turquoise)
   - Secondary: #1a1e2b (dark blue)
   - Accent: #ff7f32 (soft orange)
   - Background: #f5f5f5 to #ffffff gradient
*/

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Add scroll padding to account for fixed header */
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background: linear-gradient(to bottom, #f5f5f5, #ffffff);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #1a1e2b;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

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

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #00b3b3;
}

a {
    text-decoration: none;
    color: #00b3b3;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff7f32;
}

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

section {
    padding: 5rem 0;
    padding-top: 6rem; /* Increase top padding for sections to prevent header overlap */
}

/* Add id-based scroll targets that are above the actual content */
section::before {
    content: '';
    display: block;
    height: 80px; /* Height of your header */
    margin-top: -80px; /* Negative margin equal to header height */
    visibility: hidden;
    pointer-events: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #00b3b3;
    color: white;
}

.btn-primary:hover {
    background-color: #009999;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #ff7f32;
    color: white;
}

.btn-secondary:hover {
    background-color: #f27028;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
}

header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    z-index: 1001;
}

.logo svg {
    transition: all 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.05);
}

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

.main-menu ul li {
    margin-left: 2rem;
}

.main-menu ul li a {
    color: #1a1e2b;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    position: relative;
}

.main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00b3b3;
    transition: width 0.3s ease;
}

.main-menu ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 30px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #1a1e2b;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Make the toggle transform into an X */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background-color: #ff7f32;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background-color: #ff7f32;
}

/* Add a text label for close when active */
.menu-toggle::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Hero section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../img/OjcTq.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: grid;
    justify-items: center;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    color: #1a1e2b;
    text-align: center;
    white-space: nowrap; /* Prevents text from wrapping to a new line */
    font-size: 2.5rem; /* Maintaining existing size, adjust if needed */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Make the heading responsive for smaller screens */
@media (max-width: 768px) {
    .hero-content h1 {
        white-space: normal; /* Allow wrapping on smaller screens */
        font-size: 2rem; /* Slightly smaller on mobile devices */
    }
}

/* About Us section */
#nosotros {
    background-color: #f9f9f9;
}

.team-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.team-member {
    flex: 1;
    min-width: 280px;
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.team-member.animated {
    opacity: 1;
    transform: translateY(0);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid #00b3b3;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-description {
    margin-top: 1rem;
    color: #666;
}

/* Services section */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.service-item {
    flex: 1;
    min-width: 280px;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item h3 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #00b3b3;
}

/* Why Us section */
#por-que-nosotros {
    background: linear-gradient(to right, #1a1e2b, #2a2e3b);
}

#por-que-nosotros h2 {
    color: white;
}

.slider-container {
    overflow: hidden;
    position: relative;
}

.advantages-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.advantage-item {
    min-width: 100%;
    padding: 2rem;
    text-align: center;
    color: white;
}

.advantage-icon {
    margin-bottom: 1.5rem;
}

.advantage-item h3 {
    color: white;
    margin-bottom: 1rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control.active {
    width: 30px;
    border-radius: 10px;
    background-color: #ff7f32;
}

/* Testimonials section */
.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.testimonial {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.testimonial.animated {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-content {
    font-style: italic;
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -15px;
    color: #00b3b3;
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Contact section */
#contacto {
    background-color: #f9f9f9;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item svg {
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

.contact-form-container form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00b3b3;
    box-shadow: 0 0 0 2px rgba(0, 179, 179, 0.2);
    transform: translateY(-2px);
    background-color: white;
}

select option {
    background-color: #f9f9f9;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

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

.form-group.checkbox label {
    font-size: 0.9rem;
    color: #666;
}

/* Map section */
#mapa {
    padding: 0;
}

/* Footer */
footer {
    background-color: #1a1e2b;
    padding: 4rem 0 1rem;
    color: white;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #00b3b3;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: #00b3b3;
}

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

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(26, 30, 43, 0.95);
    color: white;
    padding: 1.5rem 0;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

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

.cookie-content p {
    margin-right: 2rem;
}

.cookie-content a {
    color: #00b3b3;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .team-container, .services-container {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-menu ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .main-menu.active ul {
        right: 0;
    }
    
    .main-menu ul li {
        margin: 1.5rem 0;
    }
    
    .main-menu ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }
    
   
    
    .testimonials-container {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
        padding-top: 5rem; /* Adjust for smaller screens */
    }
    
   
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Mobile menu overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    cursor: pointer;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

@media (max-width: 768px) {
    /* Make mobile navigation clearer */
    .main-menu ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .main-menu.active ul {
        right: 0;
    }
    
    .main-menu ul li {
        margin: 1.5rem 0;
    }
    
    .main-menu ul li a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    /* Extra animation for the menu toggle */
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span {
        width: 28px;
    }
} 