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

body {
    font-family: 'Georgia', serif;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Header y Navegación */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: auto;
    max-height: 100px;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 160px;
    height: 160px;
    animation: fadeInRotate 1s ease;
    margin: -30px 0;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1e3a5f, #c9a961);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover {
    color: #c9a961;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c9a961, #1e3a5f);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    width: 100% !important;
    max-width: 100% !important;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95), rgba(201, 169, 97, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231e3a5f" width="1200" height="800"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

/* Foto flotante del chef - LADO IZQUIERDO */
.chef-floating-photo {
    position: absolute;
    bottom: 0;
    left: 1px;
    right: 1%;
    width: 450px;
    height: 700px;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: float 6s ease-in-out infinite;
}

.chef-floating-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

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

.hero-content {
    width: 100%;
    max-width: 1200px;
    z-index: 3;
    animation: fadeInUp 1s ease;
    padding: 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    text-align: center;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    opacity: 0.95;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #c9a961, #d4b877);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 169, 97, 0.6);
    background: linear-gradient(135deg, #d4b877, #c9a961);
}

/* Secciones */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e3a5f, #c9a961);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #c9a961, #1e3a5f);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    font-style: italic;
}

/* Sobre Mí */
.about-text p {
    text-align: justify;
    text-align-last: left; /* hace que la última línea quede alineada a la izquierda */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text h3 {
    color: #1e3a5f;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9), rgba(201, 169, 97, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect fill="%231e3a5f" width="400" height="400"/><circle cx="200" cy="200" r="150" fill="%23c9a961" opacity="0.1"/><circle cx="200" cy="200" r="100" fill="%23c9a961" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-image div {
    max-width: 100%;
    line-height: 1.6;
    z-index: 2;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-image::before {
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-image:hover {
    transform: scale(1.05);
}


/* Portafolio */
/* Portafolio */
/* ========================================
   VELOCIDAD DEL CARRUSEL PARA TODOS LOS DISPOSITIVOS
   ======================================== */

/* Computador de escritorio grande (más de 1440px) */
.carousel-track {
  /* CAMBIO CLAVE 2: Asegurar que el estado de animación sea 'paused' */
  animation: scroll 50s linear infinite;
  animation-play-state: paused; 
}

/* Computador normal / Laptop (1200px - 1440px) */
@media (max-width: 1440px) {
  .carousel-track {
    animation-duration: 60s;
    animation-play-state: paused; /* ¡Asegúrate de agregar esto! */
  }
}

/* Laptop pequeño / Tablet horizontal (1024px - 1200px) */
@media (max-width: 1200px) {
  .carousel-track {
    animation-duration: 70s;
    animation-play-state: paused; /* ¡Asegúrate de agregar esto! */
  }
}

/* ... continua con tus media queries, agregando `animation-play-state: paused;` 
a cada una para que el JS las controle: */

/* Tablet grande horizontal (768px - 1024px) */
@media (max-width: 1024px) {
  .carousel-track {
    animation-duration: 80s;
    animation-play-state: paused;
  }
}
/* Tablet vertical / Celular grande horizontal (600px - 768px) */
@media (max-width: 768px) {
  .carousel-track {
    animation-duration: 100s;
    animation-play-state: paused;
  }
}
/* Celular grande (480px - 600px) */
@media (max-width: 600px) {
  .carousel-track {
    animation-duration: 110s;
    animation-play-state: paused;
  }
}
/* Celular mediano (414px - 480px) */
@media (max-width: 480px) {
  .carousel-track {
    animation-duration: 120s;
    animation-play-state: paused;
  }
}
/* Celular estándar (375px - 414px) */
@media (max-width: 414px) {
  .carousel-track {
    animation-duration: 130s;
    animation-play-state: paused;
  }
}
/* Celular pequeño (360px - 375px) */
@media (max-width: 375px) {
  .carousel-track {
    animation-duration: 140s;
    animation-play-state: paused;
  }
}
/* Celular muy pequeño (320px - 360px) */
@media (max-width: 360px) {
  .carousel-track {
    animation-duration: 150s;
    animation-play-state: paused;
  }
}
/* Celular ultra pequeño (menos de 320px) */
@media (max-width: 320px) {
  .carousel-track {
    animation-duration: 160s;
    animation-play-state: paused;
  }
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmin(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95), rgba(201, 169, 97, 0.95)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect fill="%231e3a5f" width="400" height="400"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    transition: all 0.3s ease;
}

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

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(201, 169, 97, 0.3);
    border-color: #c9a961;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #1e3a5f;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Contacto */
.contact-container {
    background: linear-gradient(135deg, #1e3a5f, #2c4a6f);
    color: white;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #c9a961;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #c9a961;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #c9a961;
    background: rgba(255,255,255,0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #c9a961, #d4b877);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

/* Footer */
/* Footer moderno */
/* Footer moderno y estilizado */
footer {
    background: linear-gradient(135deg, #1e3a5f, #2c4a6f);
    color: white;
    padding: 3rem 2rem;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1 1 300px;
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 0.5rem;
    color: #c9a961;
    font-size: 1.5rem;
}

.footer-section p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #c9a961;
    color: #1e3a5f;
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


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

@keyframes fadeInRotate {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 4;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================
   RESPONSIVE - TABLET GRANDE (1024px - 1200px)
   ============================================ */
@media (max-width: 1200px) {
    .chef-floating-photo {
        width: 400px;
        height: 500px;
        left: 30px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
    
    .about-image {
        height: 380px;
        font-size: 1.4rem;
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   RESPONSIVE - TABLET (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .chef-floating-photo {
        width: 350px;
        height: 450px;
        left: 20px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .about-image {
        height: 360px;
        font-size: 1.3rem;
        padding: 2rem 1.4rem;
    }
    
    .contact-container {
        padding: 3rem;
    }
}

/* ============================================
   RESPONSIVE - TABLET PEQUEÑA Y MÓVIL (hasta 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Navegación */
    nav {
        padding: 1rem;
    }
    
    nav ul {
        display: none;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    /* Hero responsive */
    .hero {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        min-height: auto;
    }
    
    .chef-floating-photo {
        position: relative;
        width: 280px;
        height: 350px;
        left: 0;
        bottom: 0;
        margin: 0 auto 2rem auto;
    }
    
    .hero-content {
        padding: 0 1.5rem 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 0.9rem 2.5rem;
        font-size: 1rem;
    }
    
    /* Secciones */
    section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    /* Sobre Mí */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
    }
    
    .about-image {
        height: auto;
        min-height: 300px;
        font-size: 1.2rem;
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .about-image div {
        line-height: 1.7;
    }
    
    /* Portafolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        height: 300px;
    }
    
    /* Servicios */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
    
    /* Contacto */
    .contact-container {
        padding: 2.5rem 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.8rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL PEQUEÑO (hasta 480px)
   ============================================ */
@media (max-width: 480px) {
    .brand-name {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .chef-floating-photo {
        width: 240px;
        height: 300px;
    }
    
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-text h3 {
        font-size: 1.4rem;
    }
    
    .about-image {
        height: auto;
        min-height: 260px;
        font-size: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .about-image div {
        line-height: 1.8;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-info h3 {
        font-size: 1.6rem;
    }
    
    .contact-container {
        padding: 2rem 1rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE - CELULAR ESTÁNDAR (hasta 414px)
   ============================================ */
@media (max-width: 414px) {
    .about-image {
        height: auto;
        min-height: 240px;
        font-size: 0.95rem;
        padding: 1.3rem 0.9rem;
        border-radius: 15px;
    }
    
    .about-image div {
        line-height: 1.7;
    }
    
    .about-image small {
        font-size: 0.8rem;
        display: block;
        margin-top: 0.5rem;
    }
}

/* ============================================
   RESPONSIVE - CELULAR PEQUEÑO (hasta 375px)
   ============================================ */
@media (max-width: 375px) {
    .about-image {
        height: auto;
        min-height: 220px;
        font-size: 0.9rem;
        padding: 1.2rem 0.8rem;
    }
    
    .about-image div {
        line-height: 1.6;
    }
    
    .about-image small {
        font-size: 0.75rem;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL MUY PEQUEÑO (hasta 360px)
   ============================================ */
@media (max-width: 360px) {
    .chef-floating-photo {
        width: 200px;
        height: 250px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .about-image {
        height: auto;
        min-height: 200px;
        font-size: 0.85rem;
        padding: 1rem 0.7rem;
    }
    
    .about-image div {
        line-height: 1.5;
    }
    
    .about-image small {
        font-size: 0.7rem;
    }
}

/* ============================================
   RESPONSIVE - CELULAR ULTRA PEQUEÑO (hasta 320px)
   ============================================ */
@media (max-width: 320px) {
    .about-image {
        height: auto;
        min-height: 180px;
        font-size: 0.8rem;
        padding: 0.9rem 0.6rem;
        border-radius: 12px;
    }
    
    .about-image div {
        line-height: 1.4;
    }
    
    .about-image small {
        font-size: 0.65rem;
    }
}