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

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    overflow: visible;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #fff;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}

.logo a {
    display: flex;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Menu Hamburguesa */
.menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Móvil */
.mobile-menu {
    display: none;
    background-color: #fff;
    position: fixed;
    top: 70px;
    right: 0;
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #f0f0f0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.mobile-menu a:hover {
    background-color: #f0f0f0;
}

/* Carrusel */
.carousel-container {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #ffffff;
    margin: 0;
    overflow: hidden;
}

/* Canvas - Contenedor fijo con dimensiones consistentes (80% en escritorio = aspecto tipo zoom 80%) */
.carousel {
    width: 80%;
    max-width: 1120px;
    aspect-ratio: 16 / 10;
    max-height: calc(100vh - 130px);
    background-color: #ffffff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    overflow: hidden;
    margin: 0 auto;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    margin: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    display: flex;
    opacity: 1;
    position: absolute;
}

.slide.double.active img:nth-child(1) {
    animation: fadeInImage1 2s ease-in-out forwards;
}

.slide.double.active img:nth-child(2) {
    animation: fadeOutImage1 1s ease-in-out 1.5s forwards,
               fadeInImage2 2s ease-in-out 1.5s forwards;
}

@keyframes fadeInImage1 {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOutImage1 {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInImage2 {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Slide Grande - Ocupa todo el canvas */
.slide.large.active {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 1;
}

.slide.large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0px;
    box-shadow: none;
}

/* Slides de Dos Imágenes - Cada una ocupa 50% del canvas con separación */
.slide.double.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 1;
    padding: 0 25px;
}

.slide.double img {
    width: calc(50% - 25px);
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0px;
    box-shadow: none;
    flex-shrink: 0;
    opacity: 0;
}

.slide.double img:nth-child(1) {
    animation: fadeInImage1 2s ease-in-out forwards;
}

.slide.double img:nth-child(2) {
    animation: fadeOutImage1 1s ease-in-out 1.5s forwards,
               fadeInImage2 2s ease-in-out 1.5s forwards;
}

/* Si solo hay una imagen en double - ocupa todo el canvas */
.slide.double img:only-child {
    width: 100%;
    animation: fadeInImage1 2s ease-in-out forwards !important;
}

.slide.double.active img:only-child {
    padding: 0;
}

/* Footer */
.footer {
    background-color: #ffffff;
    color: #333;
    text-align: center;
    padding: 20px 15px 15px 15px;
    margin-top: 0;
    border-top: none;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #999;
    font-size: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon i {
    font-size: 24px;
    color: #999;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.footer p {
    margin: 0;
    font-size: 12px;
}

.footer p a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.footer p a:hover {
    color: #666;
    border-bottom: 1px solid #666;
}

.footer-social a {
    color: inherit;
    text-decoration: none;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .logo img {
        height: 40px;
    }

    .carousel {
        width: 90%;
        padding: 0;
    }

    .slide.double.active {
        flex-direction: row;
        gap: 40px;
        padding: 0 20px;
    }

    .slide.large img {
        width: 100%;
        height: 100%;
    }

    .slide.double img {
        width: calc(50% - 20px);
        height: 100%;
    }
    
    .slide.double img:only-child {
        width: 100%;
    }
    
    .slide.double.active img:only-child {
        padding: 0;
    }
    
    .carousel {
        width: calc(100% - 40px);
        max-height: calc(100vh - 150px);
    }

    .footer-social {
        gap: 15px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .carousel-container {
        min-height: calc(100vh - 120px);
        padding: 20px 10px;
    }
    
    .carousel {
        width: 95%;
        aspect-ratio: 4 / 5;
        max-height: calc(100vh - 150px);
    }
}

/* Página Info */
.info-container {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background-color: #ffffff;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    max-width: 1400px;
    width: 100%;
    align-items: start;
    margin: 0 auto;
    padding: 0 20px;
}

.info-text h1 {
    font-size: 40px;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

.info-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    text-align: justify;
    font-weight: 400;
}

.info-text p:last-child {
    margin-bottom: 0;
}

.info-text {
    animation: slideInLeft 0.8s ease-out;
}

.info-image {
    animation: slideInRight 0.8s ease-out;
}

.info-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    max-width: 500px;
    max-height: 600px;
    object-fit: cover;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Página Contacto */
.contact-container {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px 20px;
    background-color: #ffffff;
    margin-top: -40px;
}

.contact-content {
    max-width: 400px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

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

.contact-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-content > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #333;
}

.contact-form button {
    padding: 12px 30px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #555;
}

/* Contact Info - Minimal Style */
.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.contact-info strong {
    color: #333;
}

/* Contact Social Links - Minimal */
.contact-social-minimal {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-social-minimal a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #999;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.contact-social-minimal a:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

/* Ocultar redes sociales del footer en contacto */
.footer-contacto .footer-social {
    display: none;
}

/* Responsive Info y Contacto */
@media (max-width: 768px) {
    .info-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-image img {
        max-width: 100%;
        max-height: 400px;
    }

    .info-text h1 {
        font-size: 24px;
    }

    .contact-content h1 {
        font-size: 24px;
    }
}
