/* Variables */
:root {
    --color-background: #F6F3EF;
    --color-primary: #E74C3C;
    --color-secondary: #34495E;
    --color-accent1: #F1C40F;
    --color-accent2: #2ECC71;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-title: 'Roboto Slab', serif;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-secondary);
    line-height: 1.6;
    padding-top: 5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent1);
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
}

.btn-accent {
    background-color: var(--color-accent1);
    color: var(--color-secondary);
}

.btn-accent:hover {
    background-color: var(--color-accent2);
    color: white;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-secondary);
    gap: 0.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
}

nav a {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 0.5rem;
}

nav a.active, nav a:hover {
    color: var(--color-primary);
}

.contact-info a {
    font-weight: 600;
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    background-color: var(--color-secondary);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(231, 76, 60, 0.85), rgba(52, 73, 94, 0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    background-color: var(--color-background);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.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(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Process Section */
.process {
    background-color: white;
}

.process-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 1px);
    width: 2px;
    background-color: var(--color-primary);
}

.process-step {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3rem;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step-content {
    width: 45%;
    background-color: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.step-number {
    position: absolute;
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Benefits Section */
.benefits {
    background-color: var(--color-background);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.benefit-image {
    height: 200px;
    overflow: hidden;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.benefit-card:hover .benefit-image img {
    transform: scale(1.05);
}

.benefit-content {
    padding: 1.5rem;
    position: relative;
}

.benefit-icon {
    background-color: var(--color-accent1);
    color: var(--color-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: absolute;
    top: -20px;
    right: 20px;
    border: 3px solid white;
}

.benefit-content h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: white;
}

.testimonial-slider {
    position: relative;
    
    width: 100%;
    
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    
}

.testimonial {
    min-width: 33.333%;
    padding: 2rem;
    box-sizing: border-box;
}

.testimonial-content {
    background-color: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-content::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--color-background) transparent transparent;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--color-primary);
}

/* Contact Form Section */
.contact {
    background-color: var(--color-background);
}

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.alert ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
    padding: 0;
}

.alert ul li {
    margin-bottom: 0.25rem;
}

/* Footer */
footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3, .footer-links h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.contact-details p {
    margin-bottom: 0.75rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-secondary);
    color: white;
    padding: 1rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.cookie-banner button:hover {
    background-color: var(--color-accent1);
}

/* Media Queries para Diseño Adaptable */
@media (max-width: 992px) {
    body {
        padding-top: 4.5rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 3rem 0;
    }

    .benefit-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }
    .testimonial-wrapper{
        flex-direction: column;
    }
    header {
        padding: 0.3rem 0;
    }
    
    .logo a {
        font-size: 1rem;
    }
    
    .logo svg {
        width: 35px;
        height: 35px;
    }
    
    nav a {
        font-size: 0.8rem;
    }
    
    nav ul {
        display: none;
        gap: 0.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps::before {
        left: 20px;
    }
    
    
    
    .process-step-content {
        width: 100%;
        margin-left: 50px;
    }
    
    .step-number {
        left: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .benefit-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 3.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    header {
        padding: 0.3rem 0;
    }
    
    .logo a {
        font-size: 1rem;
    }
    
    .logo svg {
        width: 24px;
        height: 24px;
    }
    
    .contact-info {
        display: none;
    }
    
    nav ul {
        gap: 0.3rem;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
    
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }

    .benefit-image {
        height: 140px;
    }
} 