* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #003366;
    --secondary-blue: #1a5490;
    --accent-red: #dc143c;
    --light-blue: #4a90e2;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.logo-main {
    max-width: 250px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

header p {
    font-size: 1.2em;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Navigation */
nav {
    background: var(--primary-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .container {
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 5px 10px;
}

nav a:hover {
    color: var(--accent-red);
}

/* Carrusel de imágenes */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: contain; 
    display: block;
    background: #000;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s;
    z-index: 10;
    border-radius: 5px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-red);
}

/* Sections */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background: var(--light-gray);
}

h2 {
    font-size: 2.2em;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-red);
}

h3 {
    font-size: 1.5em;
    color: var(--secondary-blue);
    margin-bottom: 15px;
}

/* Sello Empresa Mujer */
.sello-container {
    text-align: center;
    margin-bottom: 30px;
}

.sello-mujer {
    max-width: 100px;
    height: auto;
    display: inline-block;
    margin: 0 auto;
}

/* Company Info */
.company-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.company-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.8;
}

.company-info strong {
    color: var(--accent-red);
}

.logo-intermedio-container {
    text-align: center;
    margin: 20px 0;
}

.logo-intermedio {
    max-width: 300px;
    height: auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

section:nth-child(even) .service-card {
    background: var(--white);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

/* Specialized Services */
.specialized-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.specialized-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.specialized-card:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.specialized-content {
    padding: 25px;
}

.specialized-content h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.specialized-content p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* OT Services Timeline */
.ot-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.timeline-section {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.timeline-section h3 {
    background: var(--accent-red);
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.timeline-section ul {
    list-style: none;
}

.timeline-section li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-left: 2px solid var(--light-blue);
    margin-left: 10px;
}

.timeline-section li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 15px;
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    border-radius: 50%;
}

.haas-model {
    background: var(--light-blue);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
    font-weight: 600;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    min-height: 150px;
}

.partner-card:hover {
    transform: scale(1.05);
}

.partner-logo {
    max-width: 150px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Contact Section */
.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--accent-red);
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-card p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card strong {
    color: var(--accent-red);
    min-width: 80px;
}

.contact-card a {
    color: var(--light-blue);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Contact Form */
.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-container h3 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1em;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-red) 0%, #b01030 100%);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-blue);
        width: 100%;
        text-align: center;
        transition: left 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.2);
        padding: 20px 0;
        gap: 0;
    }

    nav ul.active {
        left: 0;
    }

    nav li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav a {
        display: block;
        padding: 15px;
        font-size: 1.1em;
    }

    .ot-timeline {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.8em;
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-btn {
        padding: 10px 15px;
        font-size: 18px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }
}


/* ============================================
   LANGUAGE SELECTOR STYLES
   ============================================ */

.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-btn {
    background: linear-gradient(135deg, #1a5490 0%, #e63946 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #1a5490 0%, #d62839 100%);
}

.lang-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.flag-icon {
    font-size: 20px;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-selector {
        top: 15px;
        right: 15px;
    }
    
    .lang-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .flag-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .flag-icon {
        font-size: 16px;
    }
}

/* Ensure language selector doesn't overlap with hamburger menu */
@media (max-width: 768px) {
    .language-selector {
        top: 70px; /* Move below hamburger menu on mobile */
    }
}