/* style.css - Estilos compartidos para index.html y admin.html */

/* Variables y reset */
:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --text: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    color: var(--text);
    line-height: 1.6;
}

/* Header y navegación */
header {
    background: white;
    color: black;
    padding: 1rem 2rem;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section con Carrusel */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 8rem 2rem 5rem;
    margin-top: 70px;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(to right, var(--primary), #4a6491);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-body {
    padding: 1.5rem;
}

/* Tarjeta interactiva optimizada */
.interactive-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    padding: 25px;
    margin: 20px 0;
    max-width: 350px;
    position: relative;
    overflow: hidden;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.photo-container:hover {
    transform: scale(1.05);
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 15px;
    text-align: center;
}

.info-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    width: 100%;
}

.interactive-card.expanded .info-container {
    max-height: 1500px;
    opacity: 1;
}

.card-title {
    font-size: 20px;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 15px;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    font-size: 18px;
}

.location i {
    margin-right: 10px;
    color: var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-links a:hover {
    transform: translateY(-5px);
    background: var(--secondary);
}

.info-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 25px 0;
}

.info-column {
    flex: 1;
    min-width: 300px;
}

.card-subtitle {
    color: var(--primary);
    margin: 20px 0 12px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent);
    font-size: 18px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.skill {
    background: #e8f4fc;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.icon-list i {
    margin-right: 10px;
    width: 25px;
    color: var(--accent);
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-btn {
    padding: 12px 25px;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

.card-btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #c0392b;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.contact-info {
    margin-top: 25px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.whatsapp-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.whatsapp-info i {
    color: #25D366;
    margin-right: 10px;
    font-size: 20px;
}

.instruction {
    text-align: center;
    margin-top: 15px;
    color: var(--text-light);
    font-style: italic;
    font-size: 15px;
}

/* Conócenos */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* ==================== BOTÓN DE ADMINISTRACIÓN CORREGIDO ==================== */

.admin-toggle-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-toggle-link:hover {
    background: #c0392b;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Asegurar que el icono esté centrado */
.admin-toggle-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 50px;
    margin-right: 10px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-links i {
    margin-right: 10px;
    width: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

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

/* Grid para las tarjetas del equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

/* Galería de proyectos */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: white;
    color: var(--secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--secondary);
    color: white;
}

.project-info {
    padding: 1.5rem;
}

.project-tech {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    background: #e8f4fc;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--primary);
        width: 80%;
        height: calc(100vh - 70px);
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 60vh;
        padding: 6rem 1.5rem 4rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

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

    .interactive-card {
        padding: 20px;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .info-column {
        min-width: 100%;
    }

    .buttons {
        flex-direction: column;
    }

    .card-btn {
        width: 100%;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
    }

    .projects-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .project-card {
        margin: 0 1rem;
    }
    
    .project-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        padding: 5rem 1rem 3rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }
}

/* ==================== ESTILOS ESPECÍFICOS PARA ADMIN ==================== */

/* Panel Administrador */
#adminPanel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

#adminPanel.active {
    right: 0;
}

.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.admin-toggle:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.admin-section {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.admin-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.admin-section h3 i {
    margin-right: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.admin-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background 0.3s;
}

.admin-btn:hover {
    background: #2980b9;
}

.admin-btn.secondary {
    background: var(--secondary);
}

.admin-btn.secondary:hover {
    background: #c0392b;
}

.skills-input {
    display: flex;
    gap: 10px;
}

.skills-input input {
    flex: 1;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.skill-tag {
    background: var(--light);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.skill-tag .remove-skill {
    margin-left: 5px;
    cursor: pointer;
    color: var(--secondary);
}

.tab-buttons {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Estilos del Login */
#loginModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#loginModal.active {
    opacity: 1;
    visibility: visible;
}

.login-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#loginModal.active .login-container {
    transform: translateY(0);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    border-color: var(--accent);
    outline: none;
}

.login-buttons {
    display: flex;
    gap: 10px;
}

.login-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn.primary {
    background: var(--accent);
    color: white;
}

.login-btn.primary:hover {
    background: #2980b9;
}

.login-btn.secondary {
    background: var(--light);
    color: var(--dark);
}

.login-btn.secondary:hover {
    background: #d5dbdb;
}

.login-error {
    color: var(--secondary);
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    display: none;
}

.login-error.show {
    display: block;
}

@media (max-width: 768px) {
    #adminPanel {
        width: 100%;
        right: -100%;
    }
}
