@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins.woff2') format('woff2'),
}

/* styles.css */
:root {
    --primary-color: #D4AF37;  /* Dorado elegante */
    --secondary-color: #8B4513;  /* Marrón cálido */
    --accent-color: #F5F5DC;  /* Beige suave */
    --text-color: #2C1810;  /* Marrón oscuro */
    --light-bg: #FFF8F0;  /* Beige muy claro */
    --white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-2: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --header-height: 70px;
}

/* Estilos generales con animaciones */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /*font-family: 'Playfair Display', serif;*/
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Header y Navegación Mejorada */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    height: var(--header-height);
    will-change: transform;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img,
.logo svg {
    width: 325px;
    height: auto;
    image-rendering: optimizeQuality;
    display: block;
    margin: 0 auto;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

/* Language dropdown */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-icon {
  width: 24px;
  height: 24px;
  color: var(--text-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 120px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border: 1px solid #ddd;
  border-radius: 4px;
  z-index: 1;
  top: 100%;
  right: 0;
}

.language-dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

.lang-form {
  margin: 0;
}

.lang-form button {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.lang-form button:hover,
.lang-form button.active {
  background-color: #f1f1f1;
}

.flag-icon {
  width: 20px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

/* Hero Section Mejorada */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 2rem;
    background: url('../images/wedding.jpg') center/cover no-repeat;
    overflow: hidden;
}

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

.hero-content {
    max-width: 800px;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Servicios con Cards Elegantes */
.servicios {
    padding: 6rem 2rem;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.servicios::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,75,141,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.servicio-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

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

.servicio-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Demo */
.demo {
    padding: 3rem 1rem;
    background: #333;
    color: var(--white);
}

.demo h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.demo-container {
    height: 80vh;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgb(212,175,55,0.2);
}

#scene-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-family: sans-serif;
  font-size: 1.2em;
  color: #333;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3; 
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.demo-scroll-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.demo-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    justify-content: center;
}

.demo-scroll::-webkit-scrollbar {
    display: none;
}

.demo-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 0 auto;
}

.demo-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.demo-card.active {
    background: rgba(255,255,255,0.2);
    border-color: var(--primary-color);
}

.demo-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.demo-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive Design Mejorado */
@media (max-width: 768px) {
    .header {
        padding: 0;
        transform: translateY(0);
        transition: transform 0.3s ease-in-out;
        /*background: linear-gradient(90deg, #b88a6a, #d4a98c, #f1d1b5);*/
    }
    
    .nav-main {
        padding: 0.5rem 1rem;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

   .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 225px;
        transition: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .logo:hover,
    .logo:active,
    .logo:focus {
        transform: translateX(-50%);
        outline: none; 
        animation: none;
    }
    
    .logo svg {
        width: 100%;
        height: auto;
        pointer-events: none;
    }

    .language-dropdown {
        position: relative;
        margin-left: auto;
        z-index: 1001;
    }

    .language-dropdown .dropdown-button {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .globe-icon {
        width: 18px;
        height: 18px;
    }
    
    .dropdown-content {
        min-width: 120px;
        right: 0;
        max-height: 80vh;
        overflow-y: auto;
        position: fixed;
        top: var(--header-height);
        right: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    
    .lang-form button {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .flag-icon {
        width: 16px;
        height: 12px;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a:hover {
        background: rgba(108,99,255,0.1);
    }

    /* Hero section */
    .hero {
        padding: 2rem 1rem;
        text-align: center;
        min-height: calc(100vh - var(--header-height));
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Servicios */
    .servicios {
        padding: 4rem 1rem;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .servicio-card {
        padding: 1.5rem;
    }

    /* Demo */
    .demo {
        padding: 2rem 1rem;
    }

    .demo h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .demo-container {
        height: 50vh;
        margin: 1rem auto;
    }

    .demo-scroll-container {
        padding: 0;
        width: 100%;
    }

    .demo-scroll {
        padding: 0 5%;
        gap: 1rem;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .demo-card {
        flex: 0 0 90%;
        scroll-snap-align: center;
        margin: 0 auto;
        text-align: center;
        padding: 1.2rem;
    }

    .demo-card:hover {
        transform: none;
    }

    .demo-card.active {
        background: rgba(255,255,255,0.2);
        border-color: var(--primary-color);
    }

    .demo-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .demo-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Testimonios */
    .testimonios {
        padding: 3rem 0;
    }

    /* Contacto */
    .contacto {
        padding: 4rem 1rem;
    }

    .contacto-form {
        padding: 0 1rem;
    }

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

    .social-icons {
        justify-content: center;
    }

    .testimonios-container {
        padding: 0;
        width: 100%;
    }

    .testimonios-scroll {
        padding: 0 5%;
        gap: 1rem;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .testimonio-card {
        flex: 0 0 90%;
        height: 70vh;
        margin: 0 auto;
        scroll-snap-align: center;
        padding: 1rem;
        background: var(--white);
        border-radius: 15px;
        box-shadow: var(--box-shadow);
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease;
    }

    .testimonio-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .testimonio-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 120px;
    }

    .testimonio-content p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .testimonio-autor {
        margin-top: auto;
        padding-top: 0.8rem;
    }

    .testimonio-autor h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .testimonio-autor p {
        font-size: 0.85rem;
    }

    .scroll-btn {
        display: none;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo svg {
        width: 300px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Optimización de animaciones */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Efectos de Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio Grid Mejorado */
.portfolio {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Testimonios */
.testimonios {
    padding: 5rem 2rem;
    background: var(--white);
    overflow: hidden;
}

.testimonios-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    overflow: hidden;
}

.testimonios-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 2rem;
    -webkit-overflow-scrolling: touch;
    width: calc(100% + 2rem);
}

.testimonios-scroll::-webkit-scrollbar {
    display: none;
}

.testimonio-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.testimonio-card:hover {
    transform: translateY(-10px);
}

.testimonio-imagen {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.testimonio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonio-card:hover .testimonio-imagen img {
    transform: scale(1.1);
}

.testimonio-contenido {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 350px;
}

.testimonio-texto {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /*max-height: 9.6em;*/
    padding: 1rem;
}

.testimonio-texto::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonio-autor {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1rem;
    margin-top: auto;
}

.testimonio-autor h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonio-autor p {
    color: #666;
    font-size: 0.9rem;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    margin: 0 1rem;
}

.scroll-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.prev {
    left: 0;
}

.scroll-btn.next {
    right: 0;
}

@media (max-width: 768px) {
    .testimonios {
        padding: 2rem 1rem;
    }

    .testimonios-container {
        padding: 0;
        width: 100%;
    }

    .testimonios-scroll {
        padding: 0 5%;
        gap: 1rem;
        width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .testimonio-card {
        flex: 0 0 100%;
        /*height: 70vh;*/
        margin: 10px auto;
        scroll-snap-align: center;
        padding: 1rem;
        background: var(--white);
        border-radius: 15px;
        box-shadow: var(--box-shadow);
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease;
    }

    .testimonio-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .testimonio-imagen {
        height: auto;
    }
    
    .testimonio-contenido {
        padding: 1rem;
    }

    .testimonio-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 120px;
    }

    .testimonio-content p {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .testimonio-texto {
        font-size: 1rem;
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
    }
    
    .testimonio-autor {
        margin-top: auto;
        padding-top: 0.8rem;
    }

    .testimonio-autor h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .testimonio-autor p {
        font-size: 0.85rem;
    }

    .scroll-btn {
        display: none;
    }
}

/* Contacto */
.contacto {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.contacto-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.contacto-form input,
.contacto-form textarea {
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.textarea-container {
    position: relative;
    width: 100%;
}

.contacto-form textarea {
    min-height: 150px;
    resize: vertical;
    max-width: 100%;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contacto-form button {
    padding: 1.2rem 2rem;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    width: 100%;
}

.contacto-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .contacto {
        padding: 2rem 1rem;
        background: var(--light-bg);
    }

    .contacto-form {
        padding: 2rem;
        gap: 1rem;
    }

    .contacto-form input,
    .contacto-form textarea {
        padding: 1rem;
        font-size: 1rem;
    }

    .contacto-form button {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    background: #333;
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo svg {
    width: 350px;
    height: auto;
    image-rendering: optimizeQuality;
    display: block;
    margin: 0 auto;
}

.footer-logo svg path,
.footer-logo svg polygon,
.footer-logo svg g {
    fill: white;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Asegurar que el ícono de LinkedIn tenga el mismo tamaño y estilo */
.social-icons a .fa-linkedin {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-logo svg {
        width: 300px;
    }
}

.toggle-controls-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.toggle-controls-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.toggle-controls-btn .icon {
    font-size: 1.2rem;
}

.toggle-controls-btn .text {
    font-size: 0.9rem;
    font-weight: 500;
    color: black;
}

@media (max-width: 768px) {
    .toggle-controls-btn {
        bottom: 5px;
        right: 5px;
        padding: 4px 8px;
        background: rgba(255,255,255,0.9);
        border: 2px solid var(--primary-color);
        width: auto;
        min-width: 125px;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .toggle-controls-btn .text {
        font-size: 1rem;
        font-weight: 600;
    }
}

@media (max-width: 1200px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

/* Ocultar el dropdown en dispositivos móviles al hacer hover */
@media (max-width: 768px) {
  .language-dropdown:hover .dropdown-content,
  .dropdown-content:hover {
    display: none;
  }
}