/* Responsive Styles */

/* Estilos base para móviles - Menú siempre horizontal */
@media (max-width: 768px) {
    /* Forzar menú horizontal en todos los dispositivos móviles */
    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
        left: auto !important;
        gap: 0.2rem !important;
        margin: 0 !important;
        transform: none !important;
        transition: none !important;
        list-style: none !important;
    }
    
    .nav-menu li {
        margin: 0 !important;
        padding: 0 !important;
        display: inline-block !important;
    }
    
    .hamburger {
        display: none !important;
    }
    
    .nav-link {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        color: #ffffff !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        border-radius: 3px !important;
        transition: all 0.3s ease !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
        display: inline-block !important;
        line-height: 1.2 !important;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #fbbf24 !important;
    }
    
    .nav-link::after {
        display: none !important;
    }
    
    .nav-container {
        padding: 0 10px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-logo {
        flex-shrink: 0 !important;
    }
    
    .nav-logo h2 {
        font-size: 1rem !important;
        white-space: nowrap !important;
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
    }
}

/* Responsive Styles */

/* Tablets y dispositivos medianos */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    /* Menú horizontal para tablets */
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        width: auto;
        left: auto;
    }
    
    .hamburger {
        display: none;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .perfil-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .perfil-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .cualidades-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .compromisos-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

/* Teléfonos móviles pequeños */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 5px;
    }
    
    .nav-logo h2 {
        font-size: 0.95rem;
    }
    
    .nav-menu {
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Teléfonos móviles grandes */
@media (max-width: 768px) {
    /* Menú horizontal compacto para móviles */
    .navbar {
        padding: 0.5rem 0;
        min-height: 60px;
    }
    
    .nav-container {
        padding: 0 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
        left: auto !important;
        gap: 0.3rem !important;
        margin: 0 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .hamburger {
        display: none !important;
    }
    
    .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
        color: #ffffff !important;
        font-weight: 500;
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.3s ease;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fbbf24 !important;
        transform: translateY(-1px);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-logo {
        flex-shrink: 0;
    }
    
    .nav-logo h2 {
        font-size: 1.1rem;
        white-space: nowrap;
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    
    .nav-logo h2 span {
        background: linear-gradient(135deg, #fbbf24 0%, #ffffff 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    }
    
    .nav-menu.active .nav-link:hover {
        color: #fbbf24;
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
    }

    .hamburger {
        display: none !important;
    }
    
    .hero {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-placeholder {
        width: 200px;
        height: 200px;
        font-size: 100px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .perfil-card {
        padding: 1.5rem;
    }
    
    .perfil-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cualidad-card,
    .compromiso-item {
        padding: 1.5rem;
    }
    
    .cualidades-grid,
    .compromisos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contacto-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .redes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .redes-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contacto-info {
        gap: 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 100vh;
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-placeholder {
        width: 200px;
        height: 200px;
        font-size: 100px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .perfil-card {
        padding: 1.5rem;
    }
    
    .perfil-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cualidad-card,
    .compromiso-item {
        padding: 1.5rem;
    }
    
    .cualidades-grid,
    .compromisos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contacto-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .redes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .redes-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }
}

/* Teléfonos móviles pequeños */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-placeholder {
        width: 150px;
        height: 150px;
        font-size: 80px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .perfil-placeholder {
        width: 180px;
        height: 180px;
        font-size: 90px;
    }
    
    .perfil-card {
        padding: 1.2rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cualidad-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .cualidad-card h3 {
        font-size: 1.1rem;
    }
    
    .cualidad-card p {
        font-size: 0.9rem;
    }
    
    .compromiso-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .compromiso-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .compromiso-item h3 {
        font-size: 1.1rem;
    }
    
    .compromiso-item p {
        font-size: 0.9rem;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .galeria-placeholder {
        font-size: 3rem;
    }
    
    .redes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .redes-link {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .contacto-info {
        gap: 1rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .perfil-placeholder {
        width: 150px;
        height: 150px;
        font-size: 70px;
    }
    
    .cualidad-card,
    .compromiso-item {
        padding: 1.2rem;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .redes-grid {
        grid-template-columns: 1fr;
    }
}

/* Orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-placeholder {
        width: 120px;
        height: 120px;
        font-size: 60px;
    }
}

/* Tablets en orientación horizontal */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .perfil-content {
        gap: 2rem;
    }
    
    .cualidades-grid,
    .compromisos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ajustes para dispositivos con notch */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: env(safe-area-inset-top);
    }
    
    .hero {
        padding-top: calc(80px + env(safe-area-inset-top));
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator i {
        animation: none;
    }
    
    .cualidad-card:hover,
    .compromiso-item:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Modo oscuro (si el sistema lo soporta) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --bg-light: #111827;
        --bg-white: #1f2937;
        --border-color: #374151;
    }
    
    body {
        background-color: var(--bg-white);
        color: var(--text-primary);
    }
    
    .header {
        background: rgba(31, 41, 55, 0.95);
    }
    
    .nav-menu {
        background-color: #1f2937;
    }
    
    .perfil-card,
    .cualidad-card,
    .compromiso-item,
    .contacto-item,
    .redes-sociales {
        background: #374151;
        border-color: #4b5563;
    }
    
    .stat-item {
        background: #374151;
    }
}

/* Imprimir */
@media print {
    .header,
    .hero-scroll,
    .galeria-controls,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        color: black;
    }
    
    .hero-description {
        color: black;
    }
    
    .btn {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .perfil-content,
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}